Couple of minor issues fixed

* CALLVALUE pushed incorrect value to the stack
* Set execution model to closure
This commit is contained in:
obscuren
2014-10-15 00:40:41 +02:00
parent 7ca7938d8e
commit 3d177be73e
6 changed files with 13 additions and 5 deletions

View File

@@ -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)