core/state, p2p/discover, trie, whisper: avoid unnecessary conversions (#19870)
No need to convert these types.
This commit is contained in:
committed by
Péter Szilágyi
parent
a1f8549262
commit
5183483c53
@ -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)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user