From 7c0a27a0f4d750c1977777fc7803592f4208f70e Mon Sep 17 00:00:00 2001 From: obscuren Date: Tue, 15 Jul 2014 20:36:04 +0200 Subject: [PATCH] Added each callback for storage --- ethpub/types.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ethpub/types.go b/ethpub/types.go index 5d41269c88..bd1afc007d 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