From e648ddc61453a6626e8b93a46b6016a9703d52ef Mon Sep 17 00:00:00 2001 From: lumtis Date: Wed, 10 Apr 2024 15:30:02 +0200 Subject: [PATCH] rename zrc20 bytecode update --- cmd/zetae2e/local/local.go | 2 +- e2e/e2etests/e2etests.go | 11 ++++++----- ...date_bytecode.go => test_update_bytecode_zrc20.go} | 4 ++-- 3 files changed, 9 insertions(+), 8 deletions(-) rename e2e/e2etests/{test_update_bytecode.go => test_update_bytecode_zrc20.go} (97%) diff --git a/cmd/zetae2e/local/local.go b/cmd/zetae2e/local/local.go index d3ddca09a7..33a22c46ca 100644 --- a/cmd/zetae2e/local/local.go +++ b/cmd/zetae2e/local/local.go @@ -287,7 +287,7 @@ func localE2ETest(cmd *cobra.Command, _ []string) { if testAdmin { eg.Go(adminTestRoutine(conf, deployerRunner, verbose, e2etests.TestPauseZRC20Name, - e2etests.TestUpdateBytecodeName, + e2etests.TestUpdateBytecodeZRC20Name, e2etests.TestDepositEtherLiquidityCapName, // TestMigrateChainSupportName tests EVM chain migration. Currently this test doesn't work with Anvil because pre-EIP1559 txs are not supported diff --git a/e2e/e2etests/e2etests.go b/e2e/e2etests/e2etests.go index 404616535f..a54a9a6490 100644 --- a/e2e/e2etests/e2etests.go +++ b/e2e/e2etests/e2etests.go @@ -49,9 +49,10 @@ const ( TestStressBTCDepositName = "stress_btc_deposit" // Admin test - TestMigrateChainSupportName = "migrate_chain_support" - TestPauseZRC20Name = "pause_zrc20" - TestUpdateBytecodeName = "update_bytecode" + TestMigrateChainSupportName = "migrate_chain_support" + TestPauseZRC20Name = "pause_zrc20" + TestUpdateBytecodeZRC20Name = "update_bytecode_zrc20" + TestUpdateBytecodeConnectorName = "update_bytecode_connector" ) // AllE2ETests is an ordered list of all e2e tests @@ -224,10 +225,10 @@ var AllE2ETests = []runner.E2ETest{ TestERC20DepositAndCallRefund, ), runner.NewE2ETest( - TestUpdateBytecodeName, + TestUpdateBytecodeZRC20Name, "update ZRC20 bytecode swap", []runner.ArgDefinition{}, - TestUpdateBytecode, + TestUpdateBytecodeZRC20, ), runner.NewE2ETest( TestEtherDepositAndCallName, diff --git a/e2e/e2etests/test_update_bytecode.go b/e2e/e2etests/test_update_bytecode_zrc20.go similarity index 97% rename from e2e/e2etests/test_update_bytecode.go rename to e2e/e2etests/test_update_bytecode_zrc20.go index a36af1db7c..d5730415bf 100644 --- a/e2e/e2etests/test_update_bytecode.go +++ b/e2e/e2etests/test_update_bytecode_zrc20.go @@ -12,8 +12,8 @@ import ( fungibletypes "github.com/zeta-chain/zetacore/x/fungible/types" ) -// TestUpdateBytecode tests updating the bytecode of a zrc20 and interact with it -func TestUpdateBytecode(r *runner.E2ERunner, _ []string) { +// TestUpdateBytecodeZRC20 tests updating the bytecode of a zrc20 and interact with it +func TestUpdateBytecodeZRC20(r *runner.E2ERunner, _ []string) { // Random approval approved := sample.EthAddress() tx, err := r.ETHZRC20.Approve(r.ZEVMAuth, approved, big.NewInt(1e10))