Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(e2e): update testdapp contract in deploy test #3042

Merged
merged 1 commit into from
Oct 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions e2e/e2etests/test_deploy_contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
ethcommon "github.com/ethereum/go-ethereum/common"
"github.com/stretchr/testify/require"

"github.com/zeta-chain/node/e2e/contracts/testdapp"
"github.com/zeta-chain/node/e2e/runner"
"github.com/zeta-chain/node/e2e/utils"
"github.com/zeta-chain/node/pkg/contracts/testdappv2"
)

// deployFunc is a function that deploys a contract
Expand Down Expand Up @@ -42,11 +42,9 @@ func TestDeployContract(r *runner.E2ERunner, args []string) {

// deployZEVMTestDApp deploys the TestDApp contract on ZetaChain
func deployZEVMTestDApp(r *runner.E2ERunner) (ethcommon.Address, error) {
addr, tx, _, err := testdapp.DeployTestDApp(
addr, tx, _, err := testdappv2.DeployTestDAppV2(
r.ZEVMAuth,
r.ZEVMClient,
r.ConnectorZEVMAddr,
r.WZetaAddr,
)
if err != nil {
return addr, err
Expand All @@ -63,11 +61,9 @@ func deployZEVMTestDApp(r *runner.E2ERunner) (ethcommon.Address, error) {

// deployEVMTestDApp deploys the TestDApp contract on Ethereum
func deployEVMTestDApp(r *runner.E2ERunner) (ethcommon.Address, error) {
addr, tx, _, err := testdapp.DeployTestDApp(
addr, tx, _, err := testdappv2.DeployTestDAppV2(
r.EVMAuth,
r.EVMClient,
r.ConnectorEthAddr,
r.ZetaEthAddr,
)
if err != nil {
return addr, err
Expand Down
Loading