aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/state_object.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-05-09 01:09:36 +0800
committerobscuren <geffobscura@gmail.com>2014-05-09 01:09:36 +0800
commit5a0bae1dae831818740a2f20ca308c4176f5201d (patch)
tree33fc52996530ebb7c467880975554a91d94471c6 /ethchain/state_object.go
parente8fb965ccbb65807c1f462e8f2ee82508a822b58 (diff)
downloaddexon-5a0bae1dae831818740a2f20ca308c4176f5201d.tar.gz
dexon-5a0bae1dae831818740a2f20ca308c4176f5201d.tar.zst
dexon-5a0bae1dae831818740a2f20ca308c4176f5201d.zip
Auto update state changes notifications
Diffstat (limited to 'ethchain/state_object.go')
-rw-r--r--ethchain/state_object.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ethchain/state_object.go b/ethchain/state_object.go
index b38ee4f5c..7a11a1152 100644
--- a/ethchain/state_object.go
+++ b/ethchain/state_object.go
@@ -77,7 +77,7 @@ func (c *StateObject) SetAddr(addr []byte, value interface{}) {
c.state.trie.Update(string(addr), string(ethutil.NewValue(value).Encode()))
}
-func (c *StateObject) SetMem(num *big.Int, val *ethutil.Value) {
+func (c *StateObject) SetStorage(num *big.Int, val *ethutil.Value) {
addr := ethutil.BigToBytes(num, 256)
c.SetAddr(addr, val)
}