|
|
|
@ -6,7 +6,7 @@ var util = require('../helpers/global') |
|
|
|
|
class StorageResolver { |
|
|
|
|
constructor (_traceManager) { |
|
|
|
|
this.traceManager = _traceManager |
|
|
|
|
this.clear() |
|
|
|
|
this.storageByAddress = {} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -48,14 +48,6 @@ class StorageResolver { |
|
|
|
|
return this.storageByAddress[address] && this.storageByAddress[address].complete |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* clear the cache |
|
|
|
|
* |
|
|
|
|
*/ |
|
|
|
|
clear () { |
|
|
|
|
this.storageByAddress = {} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* resolve the storage to the specified execution step @arg index. uses the traceManager.accumulateStorageChanges |
|
|
|
|
* |
|
|
|
|