func (self *StateObject) GetState(key common.Hash) common.Hash { strkey := key.Str() value, exists := self.storage[strkey] if !exists { value = self.getAddr(key) if (value != common.Hash{}) { self.storage[strkey] = value } } return value }
func (self *StateObject) SetState(k, value common.Hash) { self.storage[k.Str()] = value self.dirty = true }