From 596029d27fd5a1828e48418fb27ef744aed4d7a2 Mon Sep 17 00:00:00 2001 From: Daniel Liu Date: Mon, 6 Jan 2025 09:12:27 +0800 Subject: [PATCH] accounts/abi/bind/backends: remove unused assignment (#20359) --- accounts/abi/bind/backends/simulated_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/accounts/abi/bind/backends/simulated_test.go b/accounts/abi/bind/backends/simulated_test.go index 16728b0996e91..5ff57db4c612f 100644 --- a/accounts/abi/bind/backends/simulated_test.go +++ b/accounts/abi/bind/backends/simulated_test.go @@ -75,14 +75,13 @@ func TestSimulatedBackend(t *testing.T) { } sim.Commit() - tx, isPending, err = sim.TransactionByHash(context.Background(), txHash) + _, isPending, err = sim.TransactionByHash(context.Background(), txHash) if err != nil { t.Fatalf("error getting transaction with hash: %v", txHash.String()) } if isPending { t.Fatal("transaction should not have pending status") } - } func TestSimulatedBackend_EstimateGas(t *testing.T) {