From b71094b01cdc51a44d81eb7780a9d7d5216b6197 Mon Sep 17 00:00:00 2001 From: Maran Date: Tue, 13 May 2014 16:32:35 +0200 Subject: [PATCH 1/2] Removed harcoded addresses from GetBlock JS bindings. Fixes #39 --- ethereal/assets/qml/webapp.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ethereal/assets/qml/webapp.qml b/ethereal/assets/qml/webapp.qml index 7af006f77..381ca08fa 100644 --- a/ethereal/assets/qml/webapp.qml +++ b/ethereal/assets/qml/webapp.qml @@ -70,12 +70,12 @@ ApplicationWindow { break case "getBlockByNumber": - var block = eth.getBlock("b9b56cf6f907fbee21db0cd7cbc0e6fea2fe29503a3943e275c5e467d649cb06") + var block = eth.getBlock(data.args[0]) postData(data._seed, block) break case "getBlockByHash": - var block = eth.getBlock("b9b56cf6f907fbee21db0cd7cbc0e6fea2fe29503a3943e275c5e467d649cb06") + var block = eth.getBlock((data.args[0]) postData(data._seed, block) break From fca36cc03db129619b27133285b18b9877f82d19 Mon Sep 17 00:00:00 2001 From: Maran Date: Tue, 13 May 2014 16:36:29 +0200 Subject: [PATCH 2/2] Typo --- ethereal/assets/qml/webapp.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethereal/assets/qml/webapp.qml b/ethereal/assets/qml/webapp.qml index 381ca08fa..d3cffeeca 100644 --- a/ethereal/assets/qml/webapp.qml +++ b/ethereal/assets/qml/webapp.qml @@ -75,7 +75,7 @@ ApplicationWindow { break case "getBlockByHash": - var block = eth.getBlock((data.args[0]) + var block = eth.getBlock(data.args[0]) postData(data._seed, block) break