mv test contracts to internal directory under v2

This commit is contained in:
Jared Wasinger 2024-12-03 16:04:05 +07:00 committed by Felix Lange
parent 4872d7fde5
commit ba68e747b5
14 changed files with 4 additions and 4 deletions

View File

@ -23,8 +23,8 @@ import (
"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
"github.com/ethereum/go-ethereum/accounts/abi/bind/testdata/v2/events"
"github.com/ethereum/go-ethereum/accounts/abi/bind/testdata/v2/nested_libraries"
"github.com/ethereum/go-ethereum/accounts/abi/bind/v2/internal/events"
"github.com/ethereum/go-ethereum/accounts/abi/bind/v2/internal/nested_libraries"
"github.com/ethereum/go-ethereum/cmd/utils"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/compiler"
@ -380,7 +380,7 @@ done:
}
func TestBindingGeneration(t *testing.T) {
matches, _ := filepath.Glob("../testdata/v2/*")
matches, _ := filepath.Glob("internal/*")
var dirs []string
for _, match := range matches {
f, _ := os.Stat(match)
@ -397,7 +397,7 @@ func TestBindingGeneration(t *testing.T) {
sigs []map[string]string
libs = make(map[string]string)
)
basePath := filepath.Join("../testdata/v2", dir)
basePath := filepath.Join("internal", dir)
combinedJsonPath := filepath.Join(basePath, "combined-abi.json")
abiBytes, err := os.ReadFile(combinedJsonPath)
if err != nil {