diff options
author | obscuren <geffobscura@gmail.com> | 2014-10-15 06:40:41 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-10-15 06:40:41 +0800 |
commit | 3d177be73e127b08a52988fde308eed29eac4699 (patch) | |
tree | 4907a28db7a72af10cd1877d0932e6d71690c075 /ethstate/state.go | |
parent | 7ca7938d8e4a63b4bd244ee46856ec657d63a374 (diff) | |
download | go-tangerine-3d177be73e127b08a52988fde308eed29eac4699.tar.gz go-tangerine-3d177be73e127b08a52988fde308eed29eac4699.tar.zst go-tangerine-3d177be73e127b08a52988fde308eed29eac4699.zip |
Couple of minor issues fixed
* CALLVALUE pushed incorrect value to the stack
* Set execution model to closure
Diffstat (limited to 'ethstate/state.go')
-rw-r--r-- | ethstate/state.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ethstate/state.go b/ethstate/state.go index 23b106e34..c2486849b 100644 --- a/ethstate/state.go +++ b/ethstate/state.go @@ -94,11 +94,15 @@ func (self *State) GetStateObject(addr []byte) *StateObject { } stateObject = NewStateObjectFromBytes(addr, []byte(data)) - self.stateObjects[string(addr)] = stateObject + self.SetStateObject(stateObject) return stateObject } +func (self *State) SetStateObject(object *StateObject) { + self.stateObjects[string(object.address)] = object +} + // Retrieve a state object or create a new state object if nil func (self *State) GetOrNewStateObject(addr []byte) *StateObject { stateObject := self.GetStateObject(addr) |