aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-07-16 02:36:04 +0800
committerobscuren <geffobscura@gmail.com>2014-07-16 02:36:04 +0800
commit7c0a27a0f4d750c1977777fc7803592f4208f70e (patch)
treeeaf8b3089249ed4e06eda343cc46b07860fe14d1
parent7a410643ac5dc7cc297cbdb094539761230440d0 (diff)
downloaddexon-7c0a27a0f4d750c1977777fc7803592f4208f70e.tar
dexon-7c0a27a0f4d750c1977777fc7803592f4208f70e.tar.gz
dexon-7c0a27a0f4d750c1977777fc7803592f4208f70e.tar.bz2
dexon-7c0a27a0f4d750c1977777fc7803592f4208f70e.tar.lz
dexon-7c0a27a0f4d750c1977777fc7803592f4208f70e.tar.xz
dexon-7c0a27a0f4d750c1977777fc7803592f4208f70e.tar.zst
dexon-7c0a27a0f4d750c1977777fc7803592f4208f70e.zip
Added each callback for storage
-rw-r--r--ethpub/types.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/ethpub/types.go b/ethpub/types.go
index 5d41269c8..bd1afc007 100644
--- a/ethpub/types.go
+++ b/ethpub/types.go
@@ -5,6 +5,7 @@ import (
"fmt"
"github.com/ethereum/eth-go/ethchain"
"github.com/ethereum/eth-go/ethcrypto"
+ "github.com/ethereum/eth-go/ethtrie"
"github.com/ethereum/eth-go/ethutil"
"strings"
)
@@ -212,6 +213,10 @@ func (c *PStateObject) IsContract() bool {
return false
}
+func (self *PStateObject) EachStorage(cb ethtrie.EachCallback) {
+ self.object.State().EachStorage(cb)
+}
+
type KeyVal struct {
Key string
Value string