aboutsummaryrefslogtreecommitdiffstats
path: root/trie
diff options
context:
space:
mode:
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: