aboutsummaryrefslogtreecommitdiffstats
path: root/trie
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-11-04 06:45:44 +0800
committerobscuren <geffobscura@gmail.com>2014-11-04 06:45:44 +0800
commita82b89e2d524a9b7f758dc2d981e8af835d8cd2a (patch)
treeae3c3c3c8bdd24f1a76c455338c42635a2d1385a /trie
parentc8302882c87afffeb7d9241060e24984a04cb8eb (diff)
downloadgo-tangerine-a82b89e2d524a9b7f758dc2d981e8af835d8cd2a.tar
go-tangerine-a82b89e2d524a9b7f758dc2d981e8af835d8cd2a.tar.gz
go-tangerine-a82b89e2d524a9b7f758dc2d981e8af835d8cd2a.tar.bz2
go-tangerine-a82b89e2d524a9b7f758dc2d981e8af835d8cd2a.tar.lz
go-tangerine-a82b89e2d524a9b7f758dc2d981e8af835d8cd2a.tar.xz
go-tangerine-a82b89e2d524a9b7f758dc2d981e8af835d8cd2a.tar.zst
go-tangerine-a82b89e2d524a9b7f758dc2d981e8af835d8cd2a.zip
Added storage root to dump
Diffstat (limited to 'trie')
-rw-r--r--trie/trie.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/trie/trie.go b/trie/trie.go
index b442abfe3..d5ab2035a 100644
--- a/trie/trie.go
+++ b/trie/trie.go
@@ -178,7 +178,7 @@ func (self *Trie) setRoot(root interface{}) {
switch t := root.(type) {
case string:
if t == "" {
- root = crypto.Sha3([]byte(""))
+ root = crypto.Sha3(ethutil.Encode(""))
}
self.Root = root
case []byte: