Skip to content

Commit

Permalink
refactor setup to use custody v2 directly
Browse files Browse the repository at this point in the history
  • Loading branch information
lumtis committed Sep 30, 2024
1 parent a6caae0 commit 30d60d1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cmd/zetae2e/local/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,12 @@ func localE2ETest(cmd *cobra.Command, _ []string) {

deployerRunner.SetZEVMZRC20s()

// Update the chain params to use v2 contract for ERC20Custody
// TODO: this function should be removed and the chain params should be directly set to use v2 contract
// https://github.com/zeta-chain/node/issues/2627
deployerRunner.UpdateChainParamsV2Contracts()
deployerRunner.ERC20CustodyAddr = deployerRunner.ERC20CustodyV2Addr

if testSolana {
deployerRunner.SetSolanaContracts(conf.AdditionalAccounts.UserSolana.SolanaPrivateKey.String())
}
Expand Down Expand Up @@ -406,12 +412,6 @@ func localE2ETest(cmd *cobra.Command, _ []string) {
eg.Go(tonTestRoutine(conf, deployerRunner, verbose, tonTests...))
}

if testV2 {
// update the ERC20 custody contract for v2 tests
// note: not run in testV2Migration because it is already run in the migration process
deployerRunner.UpdateChainParamsV2Contracts()
}

// upgrade gateways
if upgradeGateways {
deployerRunner.UpgradeGateways()
Expand Down

0 comments on commit 30d60d1

Please sign in to comment.