|
|
|
@ -5,7 +5,7 @@ class MockStorageResolver { |
|
|
|
|
constructor (_storage) { |
|
|
|
|
this.storage = {} |
|
|
|
|
for (var k in _storage) { |
|
|
|
|
var hashed = util.sha3_32(k) |
|
|
|
|
var hashed = util.sha3_256(k) |
|
|
|
|
this.storage[hashed] = { |
|
|
|
|
hashed: hashed, |
|
|
|
|
key: k, |
|
|
|
@ -19,7 +19,7 @@ class MockStorageResolver { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
storageSlot (slot, callback) { |
|
|
|
|
var hashed = util.sha3_32(slot) |
|
|
|
|
var hashed = util.sha3_256(slot) |
|
|
|
|
callback(null, this.storage[hashed]) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|