aboutsummaryrefslogtreecommitdiffstats
path: root/trie/encoding.go
diff options
context:
space:
mode:
Diffstat (limited to 'trie/encoding.go')
-rw-r--r--trie/encoding.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/trie/encoding.go b/trie/encoding.go
index e96a786e4..221fa6d3a 100644
--- a/trie/encoding.go
+++ b/trie/encoding.go
@@ -83,7 +83,7 @@ func hexToKeybytes(hex []byte) []byte {
if len(hex)&1 != 0 {
panic("can't convert hex key of odd length")
}
- key := make([]byte, (len(hex)+1)/2)
+ key := make([]byte, len(hex)/2)
decodeNibbles(hex, key)
return key
}