aboutsummaryrefslogtreecommitdiffstats
path: root/trie
diff options
context:
space:
mode:
authorChristian Muehlhaeuser <muesli@gmail.com>2019-07-22 15:30:09 +0800
committerPéter Szilágyi <peterke@gmail.com>2019-07-22 15:30:09 +0800
commit5183483c53fac7ad5d31759ecb95ca7b1a67744d (patch)
treebc0b92ae748bcb16a33c754b6b8647af80def902 /trie
parenta1f8549262567ddacac3d4180f8a6ca0826036a9 (diff)
downloadgo-tangerine-5183483c53fac7ad5d31759ecb95ca7b1a67744d.tar
go-tangerine-5183483c53fac7ad5d31759ecb95ca7b1a67744d.tar.gz
go-tangerine-5183483c53fac7ad5d31759ecb95ca7b1a67744d.tar.bz2
go-tangerine-5183483c53fac7ad5d31759ecb95ca7b1a67744d.tar.lz
go-tangerine-5183483c53fac7ad5d31759ecb95ca7b1a67744d.tar.xz
go-tangerine-5183483c53fac7ad5d31759ecb95ca7b1a67744d.tar.zst
go-tangerine-5183483c53fac7ad5d31759ecb95ca7b1a67744d.zip
core/state, p2p/discover, trie, whisper: avoid unnecessary conversions (#19870)
No need to convert these types.
Diffstat (limited to 'trie')
-rw-r--r--trie/trie_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/trie/trie_test.go b/trie/trie_test.go
index ea0b3cbdd..2a9d53d0a 100644
--- a/trie/trie_test.go
+++ b/trie/trie_test.go
@@ -52,7 +52,7 @@ func TestEmptyTrie(t *testing.T) {
var trie Trie
res := trie.Hash()
exp := emptyRoot
- if res != common.Hash(exp) {
+ if res != exp {
t.Errorf("expected %x got %x", exp, res)
}
}