-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use libevm: params, core/vm, eth/tracers/* + some of core/types (#1380)
* format: as coreth * use libevm: params, core/vm, eth/tracers/* + some of core/types (#662) Co-authored-by: Arran Schlosberg <[email protected]> * format: as subnet-evm * fix coreth formatting * fix mocks * fix contract deployer allowlist * nits * nits * nit * fix test import loop * fix imports * nits * fix * add TODO --------- Co-authored-by: Arran Schlosberg <[email protected]>
- Loading branch information
Showing
339 changed files
with
1,754 additions
and
39,818 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2179,6 +2179,11 @@ func golangBindings(t *testing.T, overload bool) { | |
if out, err := replacer.CombinedOutput(); err != nil { | ||
t.Fatalf("failed to replace binding test dependency to current source tree: %v\n%s", err, out) | ||
} | ||
replacer = exec.Command(gocmd, "mod", "edit", "-x", "-require", "github.com/ethereum/[email protected]", "-replace", "github.com/ethereum/go-ethereum=github.com/ava-labs/[email protected]") | ||
replacer.Dir = pkg | ||
if out, err := replacer.CombinedOutput(); err != nil { | ||
t.Fatalf("failed to replace binding test dependency to current source tree: %v\n%s", err, out) | ||
} | ||
tidier := exec.Command(gocmd, "mod", "tidy", "-compat=1.22") | ||
tidier.Dir = pkg | ||
if out, err := tidier.CombinedOutput(); err != nil { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -452,7 +452,7 @@ var bindTests = []struct { | |
`"github.com/stretchr/testify/require" | ||
"math/big" | ||
"github.com/ethereum/go-ethereum/common" | ||
"github.com/ava-labs/subnet-evm/core/state" | ||
"github.com/ava-labs/subnet-evm/core/extstate" | ||
"github.com/ava-labs/subnet-evm/precompile/allowlist" | ||
`, | ||
` | ||
|
@@ -466,7 +466,7 @@ var bindTests = []struct { | |
require.Equal(t, testGreeting, unpackedGreeting) | ||
// test that the allow list is generated correctly | ||
stateDB := state.NewTestStateDB(t) | ||
stateDB := extstate.NewTestStateDB(t) | ||
address := common.BigToAddress(big.NewInt(1)) | ||
SetHelloWorldAllowListStatus(stateDB, address, allowlist.EnabledRole) | ||
role := GetHelloWorldAllowListStatus(stateDB, address) | ||
|
@@ -695,6 +695,11 @@ func TestPrecompileBind(t *testing.T) { | |
if out, err := replacer.CombinedOutput(); err != nil { | ||
t.Fatalf("failed to replace binding test dependency to current source tree: %v\n%s", err, out) | ||
} | ||
replacer = exec.Command(gocmd, "mod", "edit", "-x", "-require", "github.com/ethereum/[email protected]", "-replace", "github.com/ethereum/go-ethereum=github.com/ava-labs/[email protected]") | ||
replacer.Dir = pkg | ||
if out, err := replacer.CombinedOutput(); err != nil { | ||
t.Fatalf("failed to replace binding test dependency to current source tree: %v\n%s", err, out) | ||
} | ||
tidier := exec.Command(gocmd, "mod", "tidy", "-compat=1.22") | ||
tidier.Dir = pkg | ||
if out, err := tidier.CombinedOutput(); err != nil { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.