Minor updates on gas and removed/refactored old code.

This commit is contained in:
obscuren
2014-12-20 02:21:13 +01:00
parent f5b8f3d41b
commit 1508a23a6f
6 changed files with 55 additions and 42 deletions

View File

@ -94,6 +94,13 @@ func (self *StateDB) GetCode(addr []byte) []byte {
return nil
}
func (self *StateDB) SetCode(addr, code []byte) {
stateObject := self.GetStateObject(addr)
if stateObject != nil {
stateObject.SetCode(code)
}
}
func (self *StateDB) GetState(a, b []byte) []byte {
stateObject := self.GetStateObject(a)
if stateObject != nil {