Skip to content

Commit

Permalink
revert skip btc dust
Browse files Browse the repository at this point in the history
  • Loading branch information
lumtis committed Nov 22, 2024
1 parent bcbf096 commit 304fec0
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 27 deletions.
50 changes: 24 additions & 26 deletions cmd/zetae2e/local/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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")
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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...)
}
Expand Down
2 changes: 1 addition & 1 deletion contrib/localnet/orchestrator/start-zetae2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 304fec0

Please sign in to comment.