core/vm: resolve circular dependency to debug vm storage
This commit is contained in:
@ -376,12 +376,9 @@ func (self *Vm) log(pc uint64, op OpCode, gas, cost *big.Int, memory *Memory, st
|
||||
stck[i] = new(big.Int).Set(item)
|
||||
}
|
||||
storage := make(map[common.Hash][]byte)
|
||||
/*
|
||||
object := contract.self.(*state.StateObject)
|
||||
object.EachStorage(func(k, v []byte) {
|
||||
storage[common.BytesToHash(k)] = v
|
||||
})
|
||||
*/
|
||||
contract.self.EachStorage(func(k, v []byte) {
|
||||
storage[common.BytesToHash(k)] = v
|
||||
})
|
||||
self.env.AddStructLog(StructLog{pc, op, new(big.Int).Set(gas), cost, mem, stck, storage, err})
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user