reenable TestBindingV2ConvertedV1Tests

This commit is contained in:
Jared Wasinger 2025-01-07 16:10:55 +07:00 committed by Felix Lange
parent 9dd006f4e0
commit c7ff6488d6

View file

@ -6,7 +6,6 @@ import (
"github.com/ethereum/go-ethereum/accounts/abi" "github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/crypto"
"os" "os"
"strings"
"testing" "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. // 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("//go:embed v2/internal/convertedv1bindtests/%s.go\n", strings.ToLower(tc.name))
fmt.Printf("var v1TestBinding%s string\n", tc.name) fmt.Printf("var v1TestBinding%s string\n", tc.name)
fmt.Println() fmt.Println()
*/ */
/* if code != tc.expectedBindings {
if code != tc.expectedBindings { //t.Fatalf("name mismatch for %s", tc.name)
//t.Fatalf("name mismatch for %s", tc.name) t.Fatalf("'%s'\n!=\n'%s'\n", code, tc.expectedBindings)
t.Fatalf("'%s'\n!=\n'%s'\n", code, tc.expectedBindings) }
}
*/
}) })
} }
} }