aboutsummaryrefslogtreecommitdiffstats
path: root/ethpub
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-07-21 17:56:04 +0800
committerobscuren <geffobscura@gmail.com>2014-07-21 17:56:04 +0800
commit93261b98c2bc664af30676129def291ff9e8a9ce (patch)
tree5974e89344e6222908dbb6a398b9453b276254f8 /ethpub
parent9f00aeae29d53fec358fcecdc9bcc162b8e3984c (diff)
downloadgo-tangerine-93261b98c2bc664af30676129def291ff9e8a9ce.tar
go-tangerine-93261b98c2bc664af30676129def291ff9e8a9ce.tar.gz
go-tangerine-93261b98c2bc664af30676129def291ff9e8a9ce.tar.bz2
go-tangerine-93261b98c2bc664af30676129def291ff9e8a9ce.tar.lz
go-tangerine-93261b98c2bc664af30676129def291ff9e8a9ce.tar.xz
go-tangerine-93261b98c2bc664af30676129def291ff9e8a9ce.tar.zst
go-tangerine-93261b98c2bc664af30676129def291ff9e8a9ce.zip
Changed iterator
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())})
})
}