Skip to content

Commit 8f1b461

Browse files
committed
Corrected getEachStorageAt
1 parent c2c8757 commit 8f1b461

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

ethereal/assets/ext/test.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
var filter = eth.watch({
1313
latest: -1,
1414
from: "e6716f9544a56c530d868e4bfbacb172315bdead",
15+
altered: ["aabb", {id: "eeff", "at": "aabb"}],
1516
});
1617

1718
filter.changed(function(messages) {
@@ -22,8 +23,10 @@
2223
console.log("getMessages", messages)
2324
});
2425

25-
eth.getEachStorageAt("9ef0f0d81e040012600b0c1abdef7c48f720f88a", function(a, b) {
26-
console.log(a,b)
26+
eth.getEachStorageAt("9ef0f0d81e040012600b0c1abdef7c48f720f88a", function(entries) {
27+
for(var i = 0; i < entries.length; i++) {
28+
console.log(entries[i].key, " : ", entries[i].value)
29+
}
2730
})
2831

2932
eth.getBlock("f70097659f329a09642a27f11338d9269de64f1d4485786e36bfc410832148cd", function(block) {

ethereal/assets/qml/webapp.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ ApplicationWindow {
195195

196196
case "getEachStorage":
197197
require(1);
198-
var storage = eth.getEachStorage(data.args[0])
198+
var storage = JSON.parse(eth.getEachStorage(data.args[0]))
199199
postData(data._seed, storage)
200200

201201
break

0 commit comments

Comments
 (0)