aboutsummaryrefslogtreecommitdiffstats
path: root/ethutil/trie.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-02-25 17:50:53 +0800
committerobscuren <geffobscura@gmail.com>2014-02-25 17:50:53 +0800
commitb30b9ab8cb13ddbc68a4912c9f06116c0f59bc27 (patch)
tree13edf727b9172273315174ebfc759010a3aec8fb /ethutil/trie.go
parent0afdedb01a8e4203129175dc9dcc213a55906a66 (diff)
downloadgo-tangerine-b30b9ab8cb13ddbc68a4912c9f06116c0f59bc27.tar
go-tangerine-b30b9ab8cb13ddbc68a4912c9f06116c0f59bc27.tar.gz
go-tangerine-b30b9ab8cb13ddbc68a4912c9f06116c0f59bc27.tar.bz2
go-tangerine-b30b9ab8cb13ddbc68a4912c9f06116c0f59bc27.tar.lz
go-tangerine-b30b9ab8cb13ddbc68a4912c9f06116c0f59bc27.tar.xz
go-tangerine-b30b9ab8cb13ddbc68a4912c9f06116c0f59bc27.tar.zst
go-tangerine-b30b9ab8cb13ddbc68a4912c9f06116c0f59bc27.zip
Fixed a minor issue where a string is expected but returns slice
Diffstat (limited to 'ethutil/trie.go')
-rw-r--r--ethutil/trie.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ethutil/trie.go b/ethutil/trie.go
index 83527d364..a17dc37ad 100644
--- a/ethutil/trie.go
+++ b/ethutil/trie.go
@@ -439,7 +439,7 @@ func (it *TrieIterator) workNode(currentNode *Value) {
if currentNode.Len() == 2 {
k := CompactDecode(currentNode.Get(0).Str())
- if currentNode.Get(1).IsSlice() {
+ if currentNode.Get(1).Str() == "" {
it.workNode(currentNode.Get(1))
} else {
if k[len(k)-1] == 16 {
@@ -454,7 +454,7 @@ func (it *TrieIterator) workNode(currentNode *Value) {
if i == 16 && currentNode.Get(i).Len() != 0 {
it.values = append(it.values, currentNode.Get(i).Str())
} else {
- if currentNode.Get(i).IsSlice() {
+ if currentNode.Get(i).Str() == "" {
it.workNode(currentNode.Get(i))
} else {
val := currentNode.Get(i).Str()