diff options
author | Christian Muehlhaeuser <muesli@gmail.com> | 2019-07-22 15:30:09 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2019-07-22 15:30:09 +0800 |
commit | 5183483c53fac7ad5d31759ecb95ca7b1a67744d (patch) | |
tree | bc0b92ae748bcb16a33c754b6b8647af80def902 /trie | |
parent | a1f8549262567ddacac3d4180f8a6ca0826036a9 (diff) | |
download | go-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.go | 2 |
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) } } |