diff options
author | zelig <viktor.tron@gmail.com> | 2014-07-21 20:31:26 +0800 |
---|---|---|
committer | zelig <viktor.tron@gmail.com> | 2014-07-21 20:31:26 +0800 |
commit | 13cc220c0d7f9b31478b49a1109d44aeab66b372 (patch) | |
tree | 7f103997d746e2b5da20eed3ce20cb2521b12852 /ethpub | |
parent | 1e4af85a380977233a3bceaf5e2a020a281aa19a (diff) | |
parent | 8f91d47bf3c26b850f0f40f79856141087e6ef82 (diff) | |
download | dexon-13cc220c0d7f9b31478b49a1109d44aeab66b372.tar dexon-13cc220c0d7f9b31478b49a1109d44aeab66b372.tar.gz dexon-13cc220c0d7f9b31478b49a1109d44aeab66b372.tar.bz2 dexon-13cc220c0d7f9b31478b49a1109d44aeab66b372.tar.lz dexon-13cc220c0d7f9b31478b49a1109d44aeab66b372.tar.xz dexon-13cc220c0d7f9b31478b49a1109d44aeab66b372.tar.zst dexon-13cc220c0d7f9b31478b49a1109d44aeab66b372.zip |
Merge branch 'develop' of github.com:ethereum/eth-go into feature/ethutil-refactor
Diffstat (limited to 'ethpub')
-rw-r--r-- | ethpub/types.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ethpub/types.go b/ethpub/types.go index 9e5159a4c..52ea5a6bb 100644 --- a/ethpub/types.go +++ b/ethpub/types.go @@ -215,7 +215,7 @@ func (c *PStateObject) IsContract() bool { } func (self *PStateObject) EachStorage(cb ethtrie.EachCallback) { - self.object.State().EachStorage(cb) + self.object.EachStorage(cb) } type KeyVal struct { @@ -226,7 +226,7 @@ type KeyVal struct { func (c *PStateObject) StateKeyVal(asJson bool) interface{} { var values []KeyVal if c.object != nil { - c.object.State().EachStorage(func(name string, value *ethutil.Value) { + c.object.EachStorage(func(name string, value *ethutil.Value) { values = append(values, KeyVal{name, ethutil.Bytes2Hex(value.Bytes())}) }) } |