From 5183483c53fac7ad5d31759ecb95ca7b1a67744d Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Mon, 22 Jul 2019 09:30:09 +0200 Subject: core/state, p2p/discover, trie, whisper: avoid unnecessary conversions (#19870) No need to convert these types. --- trie/trie_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'trie') 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) } } -- cgit v1.2.3