aboutsummaryrefslogtreecommitdiffstats
path: root/ethpub
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2014-07-21 20:31:26 +0800
committerzelig <viktor.tron@gmail.com>2014-07-21 20:31:26 +0800
commit13cc220c0d7f9b31478b49a1109d44aeab66b372 (patch)
tree7f103997d746e2b5da20eed3ce20cb2521b12852 /ethpub
parent1e4af85a380977233a3bceaf5e2a020a281aa19a (diff)
parent8f91d47bf3c26b850f0f40f79856141087e6ef82 (diff)
downloaddexon-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.go4
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())})
})
}