Skip to content

Commit

Permalink
rename zrc20 bytecode update
Browse files Browse the repository at this point in the history
  • Loading branch information
lumtis committed Apr 10, 2024
1 parent d8ac99e commit e648ddc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion cmd/zetae2e/local/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 6 additions & 5 deletions e2e/e2etests/e2etests.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -224,10 +225,10 @@ var AllE2ETests = []runner.E2ETest{
TestERC20DepositAndCallRefund,
),
runner.NewE2ETest(
TestUpdateBytecodeName,
TestUpdateBytecodeZRC20Name,
"update ZRC20 bytecode swap",
[]runner.ArgDefinition{},
TestUpdateBytecode,
TestUpdateBytecodeZRC20,
),
runner.NewE2ETest(
TestEtherDepositAndCallName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit e648ddc

Please sign in to comment.