From 25481e04bb27bfe3b00264aedbddcb751a99e5c5 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Wed, 22 Jan 2025 14:32:49 +0100 Subject: [PATCH] accounts/abi/bind: fix some more warnings --- accounts/abi/bind/dep_tree_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/accounts/abi/bind/dep_tree_test.go b/accounts/abi/bind/dep_tree_test.go index 6f1552bb01..66dba9dc7d 100644 --- a/accounts/abi/bind/dep_tree_test.go +++ b/accounts/abi/bind/dep_tree_test.go @@ -136,7 +136,7 @@ func testLinkCase(tcInput linkTestCaseInput) error { // generate deterministic addresses for the override set. rand.Seed(42) overrideAddrs := make(map[rune]common.Address) - for contract, _ := range tcInput.overrides { + for contract := range tcInput.overrides { var addr common.Address rand.Read(addr[:]) overrideAddrs[contract] = addr @@ -200,7 +200,7 @@ func testLinkCase(tcInput linkTestCaseInput) error { if len(res.Txs) != len(tcInput.expectDeployed) { return fmt.Errorf("got %d deployed contracts. expected %d.\n", len(res.Addrs), len(tcInput.expectDeployed)) } - for contract, _ := range tcInput.expectDeployed { + for contract := range tcInput.expectDeployed { pattern := crypto.Keccak256Hash([]byte(string(contract))).String()[2:36] if _, ok := res.Addrs[pattern]; !ok { return fmt.Errorf("expected contract %s was not deployed\n", string(contract))