|
|
@ -61,10 +61,12 @@ class StorageResolver { |
|
|
|
* @param {String} - address - lookup address |
|
|
|
* @param {String} - address - lookup address |
|
|
|
* @param {Function} - callback - {key, hashedKey, value} - |
|
|
|
* @param {Function} - callback - {key, hashedKey, value} - |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
storageSlot (slot, tx, stepIndex, address, callback) { |
|
|
|
storageSlot (slot, tx, stepIndex, address) { |
|
|
|
this.storageRangeInternal(this, slot, tx, stepIndex, address).then((storage) => { |
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
callback(null, storage[slot] !== undefined ? storage[slot] : null) |
|
|
|
this.storageRangeInternal(this, slot, tx, stepIndex, address).then((storage) => { |
|
|
|
}).catch(callback) |
|
|
|
resolve(storage[slot] !== undefined ? storage[slot] : null) |
|
|
|
|
|
|
|
}).catch(reject) |
|
|
|
|
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|