From 304fec006abf4a1ca5598307db8ebb49bcac700e Mon Sep 17 00:00:00 2001 From: lumtis Date: Fri, 22 Nov 2024 10:02:14 +0100 Subject: [PATCH] revert skip btc dust --- cmd/zetae2e/local/local.go | 50 +++++++++---------- .../localnet/orchestrator/start-zetae2e.sh | 2 +- 2 files changed, 25 insertions(+), 27 deletions(-) diff --git a/cmd/zetae2e/local/local.go b/cmd/zetae2e/local/local.go index a09fb512d1..bafb5ac9df 100644 --- a/cmd/zetae2e/local/local.go +++ b/cmd/zetae2e/local/local.go @@ -87,8 +87,6 @@ func NewLocalCmd() *cobra.Command { cmd.Flags().Bool(flagSkipPrecompiles, false, "set to true to skip stateful precompiled contracts test") cmd.Flags(). Bool(flagUpgradeContracts, false, "set to true to upgrade Gateways and ERC20Custody contracts during setup for ZEVM and EVM") - cmd.Flags(). - Bool(flagSkipBitcoinDustWithdraw, false, "set to true to skip tests that withdraw dust amount from Bitcoin") return cmd } @@ -98,28 +96,27 @@ func NewLocalCmd() *cobra.Command { func localE2ETest(cmd *cobra.Command, _ []string) { // fetch flags var ( - waitForHeight = must(cmd.Flags().GetInt64(flagWaitForHeight)) - contractsDeployed = must(cmd.Flags().GetBool(flagContractsDeployed)) - verbose = must(cmd.Flags().GetBool(flagVerbose)) - configOut = must(cmd.Flags().GetString(flagConfigOut)) - testAdmin = must(cmd.Flags().GetBool(flagTestAdmin)) - testPerformance = must(cmd.Flags().GetBool(flagTestPerformance)) - testCustom = must(cmd.Flags().GetBool(flagTestCustom)) - testSolana = must(cmd.Flags().GetBool(flagTestSolana)) - testTON = must(cmd.Flags().GetBool(flagTestTON)) - skipRegular = must(cmd.Flags().GetBool(flagSkipRegular)) - light = must(cmd.Flags().GetBool(flagLight)) - setupOnly = must(cmd.Flags().GetBool(flagSetupOnly)) - skipSetup = must(cmd.Flags().GetBool(flagSkipSetup)) - skipBitcoinSetup = must(cmd.Flags().GetBool(flagSkipBitcoinSetup)) - skipHeaderProof = must(cmd.Flags().GetBool(flagSkipHeaderProof)) - skipTrackerCheck = must(cmd.Flags().GetBool(flagSkipTrackerCheck)) - testTSSMigration = must(cmd.Flags().GetBool(flagTestTSSMigration)) - testV2 = must(cmd.Flags().GetBool(flagTestV2)) - testV2Migration = must(cmd.Flags().GetBool(flagTestV2Migration)) - skipPrecompiles = must(cmd.Flags().GetBool(flagSkipPrecompiles)) - upgradeContracts = must(cmd.Flags().GetBool(flagUpgradeContracts)) - skipBitcoinDustWithdraw = must(cmd.Flags().GetBool(flagSkipBitcoinDustWithdraw)) + waitForHeight = must(cmd.Flags().GetInt64(flagWaitForHeight)) + contractsDeployed = must(cmd.Flags().GetBool(flagContractsDeployed)) + verbose = must(cmd.Flags().GetBool(flagVerbose)) + configOut = must(cmd.Flags().GetString(flagConfigOut)) + testAdmin = must(cmd.Flags().GetBool(flagTestAdmin)) + testPerformance = must(cmd.Flags().GetBool(flagTestPerformance)) + testCustom = must(cmd.Flags().GetBool(flagTestCustom)) + testSolana = must(cmd.Flags().GetBool(flagTestSolana)) + testTON = must(cmd.Flags().GetBool(flagTestTON)) + skipRegular = must(cmd.Flags().GetBool(flagSkipRegular)) + light = must(cmd.Flags().GetBool(flagLight)) + setupOnly = must(cmd.Flags().GetBool(flagSetupOnly)) + skipSetup = must(cmd.Flags().GetBool(flagSkipSetup)) + skipBitcoinSetup = must(cmd.Flags().GetBool(flagSkipBitcoinSetup)) + skipHeaderProof = must(cmd.Flags().GetBool(flagSkipHeaderProof)) + skipTrackerCheck = must(cmd.Flags().GetBool(flagSkipTrackerCheck)) + testTSSMigration = must(cmd.Flags().GetBool(flagTestTSSMigration)) + testV2 = must(cmd.Flags().GetBool(flagTestV2)) + testV2Migration = must(cmd.Flags().GetBool(flagTestV2Migration)) + skipPrecompiles = must(cmd.Flags().GetBool(flagSkipPrecompiles)) + upgradeContracts = must(cmd.Flags().GetBool(flagUpgradeContracts)) ) logger := runner.NewLogger(verbose, color.FgWhite, "setup") @@ -334,8 +331,8 @@ func localE2ETest(cmd *cobra.Command, _ []string) { e2etests.TestBitcoinStdMemoInscribedDepositAndCallName, e2etests.TestCrosschainSwapName, } - if !skipBitcoinDustWithdraw { - bitcoinDepositTests = append(bitcoinDepositTests, e2etests.TestBitcoinDepositAndCallRevertWithDustName) + bitcoinDepositTestsAdvanced := []string{ + e2etests.TestBitcoinDepositAndCallRevertWithDustName, } bitcoinWithdrawTests := []string{ e2etests.TestBitcoinWithdrawSegWitName, @@ -381,6 +378,7 @@ func localE2ETest(cmd *cobra.Command, _ []string) { erc20Tests = append(erc20Tests, erc20AdvancedTests...) zetaTests = append(zetaTests, zetaAdvancedTests...) zevmMPTests = append(zevmMPTests, zevmMPAdvancedTests...) + bitcoinDepositTests = append(bitcoinDepositTests, bitcoinDepositTestsAdvanced...) bitcoinWithdrawTests = append(bitcoinWithdrawTests, bitcoinWithdrawTestsAdvanced...) ethereumTests = append(ethereumTests, ethereumAdvancedTests...) } diff --git a/contrib/localnet/orchestrator/start-zetae2e.sh b/contrib/localnet/orchestrator/start-zetae2e.sh index f4ef0e814f..c9c3d26c55 100644 --- a/contrib/localnet/orchestrator/start-zetae2e.sh +++ b/contrib/localnet/orchestrator/start-zetae2e.sh @@ -223,7 +223,7 @@ if [ "$LOCALNET_MODE" == "upgrade" ]; then # Use light flag to ensure tests can complete before the upgrade height # skip-bitcoin-dust-withdraw flag can be removed after v23 is released - zetae2e local $E2E_ARGS --skip-setup --config "$deployed_config_path" --light --skip-precompiles --skip-bitcoin-dust-withdraw ${COMMON_ARGS} + zetae2e local $E2E_ARGS --skip-setup --config "$deployed_config_path" --light --skip-precompiles ${COMMON_ARGS} if [ $? -ne 0 ]; then echo "first e2e failed" exit 1