diff --git a/accounts/abi/bind/v2/dep_tree_test.go b/accounts/abi/bind/v2/dep_tree_test.go index e686e3fec4..8cd424883f 100644 --- a/accounts/abi/bind/v2/dep_tree_test.go +++ b/accounts/abi/bind/v2/dep_tree_test.go @@ -225,7 +225,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.Addresses), len(tcInput.expectDeployed)) + return fmt.Errorf("got %d deployed contracts. expected %d.\n", len(res.Txs), len(tcInput.expectDeployed)) } for contract := range tcInput.expectDeployed { pattern := crypto.Keccak256Hash([]byte(string(contract))).String()[2:36] diff --git a/accounts/abi/bind/v2/lib_test.go b/accounts/abi/bind/v2/lib_test.go index 11360fc7dd..eb6152df52 100644 --- a/accounts/abi/bind/v2/lib_test.go +++ b/accounts/abi/bind/v2/lib_test.go @@ -310,7 +310,7 @@ done: t.Fatalf("expected e1Count of 2 from filter call. got %d", e1Count) } if e2Count != 1 { - t.Fatalf("expected e2Count of 1 from filter call. got %d", e1Count) + t.Fatalf("expected e2Count of 1 from filter call. got %d", e2Count) } } diff --git a/accounts/abi/reflect_test.go b/accounts/abi/reflect_test.go index f5e509c52f..c824811916 100644 --- a/accounts/abi/reflect_test.go +++ b/accounts/abi/reflect_test.go @@ -234,13 +234,13 @@ func TestConvertType(t *testing.T) { t.Errorf("ConvertType failed, got %v want %v", out2[0].X, big.NewInt(1)) } if out2[0].Y.Cmp(big.NewInt(2)) != 0 { - t.Errorf("ConvertType failed, got %v want %v", out2[1].Y, big.NewInt(2)) + t.Errorf("ConvertType failed, got %v want %v", out2[0].Y, big.NewInt(2)) } if out2[1].X.Cmp(big.NewInt(3)) != 0 { - t.Errorf("ConvertType failed, got %v want %v", out2[0].X, big.NewInt(1)) + t.Errorf("ConvertType failed, got %v want %v", out2[1].X, big.NewInt(3)) } if out2[1].Y.Cmp(big.NewInt(4)) != 0 { - t.Errorf("ConvertType failed, got %v want %v", out2[1].Y, big.NewInt(2)) + t.Errorf("ConvertType failed, got %v want %v", out2[1].Y, big.NewInt(4)) } // Array Type val3 := reflect.New(reflect.ArrayOf(2, reflect.StructOf(fields))) @@ -253,12 +253,12 @@ func TestConvertType(t *testing.T) { t.Errorf("ConvertType failed, got %v want %v", out3[0].X, big.NewInt(1)) } if out3[0].Y.Cmp(big.NewInt(2)) != 0 { - t.Errorf("ConvertType failed, got %v want %v", out3[1].Y, big.NewInt(2)) + t.Errorf("ConvertType failed, got %v want %v", out3[0].Y, big.NewInt(2)) } if out3[1].X.Cmp(big.NewInt(3)) != 0 { - t.Errorf("ConvertType failed, got %v want %v", out3[0].X, big.NewInt(1)) + t.Errorf("ConvertType failed, got %v want %v", out3[1].X, big.NewInt(3)) } if out3[1].Y.Cmp(big.NewInt(4)) != 0 { - t.Errorf("ConvertType failed, got %v want %v", out3[1].Y, big.NewInt(2)) + t.Errorf("ConvertType failed, got %v want %v", out3[1].Y, big.NewInt(4)) } }