diff --git a/accounts/abi/bind/bindv2_test.go b/accounts/abi/bind/bindv2_test.go index 64683c8cf1..aba35639b8 100644 --- a/accounts/abi/bind/bindv2_test.go +++ b/accounts/abi/bind/bindv2_test.go @@ -6,7 +6,6 @@ import ( "github.com/ethereum/go-ethereum/accounts/abi" "github.com/ethereum/go-ethereum/crypto" "os" - "strings" "testing" ) @@ -345,20 +344,19 @@ func TestBindingV2ConvertedV1Tests(t *testing.T) { // TODO: remove these before merging abigen2 PR. these are for convenience if I need to regenerate the converted bindings or add a new one. - if err := os.WriteFile(fmt.Sprintf("convertedv1bindtests/%s.go", strings.ToLower(tc.name)), []byte(code), 0666); err != nil { - t.Fatalf("err writing expected output to file: %v\n", err) - } + /* + if err := os.WriteFile(fmt.Sprintf("convertedv1bindtests/%s.go", strings.ToLower(tc.name)), []byte(code), 0666); err != nil { + t.Fatalf("err writing expected output to file: %v\n", err) + }*/ /* fmt.Printf("//go:embed v2/internal/convertedv1bindtests/%s.go\n", strings.ToLower(tc.name)) fmt.Printf("var v1TestBinding%s string\n", tc.name) fmt.Println() */ - /* - if code != tc.expectedBindings { - //t.Fatalf("name mismatch for %s", tc.name) - t.Fatalf("'%s'\n!=\n'%s'\n", code, tc.expectedBindings) - } - */ + if code != tc.expectedBindings { + //t.Fatalf("name mismatch for %s", tc.name) + t.Fatalf("'%s'\n!=\n'%s'\n", code, tc.expectedBindings) + } }) } }