mirror of
https://github.com/arnaucube/go-ethereum.git
synced 2026-02-28 05:56:45 +01:00
all: fix ineffectual assignments and remove uses of crypto.Sha3
go get github.com/gordonklaus/ineffassign ineffassign .
This commit is contained in:
@@ -56,9 +56,11 @@ func TestEmptyTrie(t *testing.T) {
|
||||
func TestNull(t *testing.T) {
|
||||
var trie Trie
|
||||
key := make([]byte, 32)
|
||||
value := common.FromHex("0x823140710bf13990e4500136726d8b55")
|
||||
value := []byte("test")
|
||||
trie.Update(key, value)
|
||||
value = trie.Get(key)
|
||||
if !bytes.Equal(trie.Get(key), value) {
|
||||
t.Fatal("wrong value")
|
||||
}
|
||||
}
|
||||
|
||||
func TestMissingRoot(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user