aboutsummaryrefslogtreecommitdiffstats
path: root/xeth/types.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-26 07:42:35 +0800
committerobscuren <geffobscura@gmail.com>2015-03-26 07:42:35 +0800
commit7e4c48871782901e292957a17c9da9fa1b789054 (patch)
tree39cff964e8512966772b68ad791460c338d4c6da /xeth/types.go
parent505f1fbcbbc00b3f4750b9e9a7c119f882c620bf (diff)
downloadgo-tangerine-7e4c48871782901e292957a17c9da9fa1b789054.tar.gz
go-tangerine-7e4c48871782901e292957a17c9da9fa1b789054.tar.zst
go-tangerine-7e4c48871782901e292957a17c9da9fa1b789054.zip
Fixed storage. Closes #516
Diffstat (limited to 'xeth/types.go')
-rw-r--r--xeth/types.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/xeth/types.go b/xeth/types.go
index 09d0dc714..3f96f8f8b 100644
--- a/xeth/types.go
+++ b/xeth/types.go
@@ -7,11 +7,11 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core"
+ "github.com/ethereum/go-ethereum/core/state"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/p2p"
"github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/core/state"
)
type Object struct {
@@ -45,7 +45,7 @@ func (self *Object) Storage() (storage map[string]string) {
for it.Next() {
var data []byte
rlp.Decode(bytes.NewReader(it.Value), &data)
- storage[common.ToHex(it.Key)] = common.ToHex(data)
+ storage[common.ToHex(self.Trie().GetKey(it.Key))] = common.ToHex(data)
}
return