Skip to content

Commit

Permalink
add wasm tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hungdinh82 committed Jan 2, 2025
1 parent 1e1fda8 commit 096ac43
Show file tree
Hide file tree
Showing 3 changed files with 640 additions and 640 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -437,8 +437,8 @@ e2e-test-genesis-bridge-no-relay-ack-evm: clean-e2e
e2e-test-timebaseupgrade-evm: clean-e2e
cd tests && go test -timeout=45m -race -v -run Test_TimeBaseUpgrade_EVM .

# e2e-test-timebaseupgrade-wasm: clean-e2e
# cd tests && go test -timeout=45m -race -v -run Test_TimeBaseUpgrade_Wasm .
e2e-test-timebaseupgrade-wasm: clean-e2e
cd tests && go test -timeout=45m -race -v -run Test_TimeBaseUpgrade_Wasm .

e2e-test-sequencer-rotation-roatate-request-no-da-evm: clean-e2e
cd tests && go test -timeout=45m -race -v -run Test_SeqRot_RotReq_No_DA_EVM .
Expand All @@ -452,8 +452,8 @@ e2e-test-fraud-detection-wasm: clean-e2e
e2e-test-timebaseupgradeinpast-evm: clean-e2e
cd tests && go test -timeout=45m -race -v -run Test_TimeBaseUpgradeInPast_EVM .

# e2e-test-timebaseupgradeinpast-wasm: clean-e2e
# cd tests && go test -timeout=45m -race -v -run Test_TimeBaseUpgradeInPast_Wasm .
e2e-test-timebaseupgradeinpast-wasm: clean-e2e
cd tests && go test -timeout=45m -race -v -run Test_TimeBaseUpgradeInPast_Wasm .

e2e-test-zero-fee-rotated-sequencer-evm: clean-e2e
cd tests && go test -timeout=45m -race -v -run TestZeroFee_RotatedSequencer_EVM .
Expand Down
16 changes: 8 additions & 8 deletions tests/hardfork_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1589,14 +1589,14 @@ func Test_HardFork_KickProposer_Wasm(t *testing.T) {
require.NoError(t, err)

// Get the IBC denom
dymensionTokenDenom := transfertypes.GetPrefixedDenom(channel.Counterparty.PortID, channel.Counterparty.ChannelID, dymension.Config().Denom)
dymensionIBCDenom := transfertypes.ParseDenomTrace(dymensionTokenDenom).IBCDenom()
// dymensionTokenDenom := transfertypes.GetPrefixedDenom(channel.Counterparty.PortID, channel.Counterparty.ChannelID, dymension.Config().Denom)
// dymensionIBCDenom := transfertypes.ParseDenomTrace(dymensionTokenDenom).IBCDenom()

testutil.AssertBalance(t, ctx, dymension, dymensionUserAddr, dymension.Config().Denom, dymensionOrigBal.Sub(transferData.Amount))
erc20MAcc, err := rollapp1.Validators[0].QueryModuleAccount(ctx, "erc20")
require.NoError(t, err)
erc20MAccAddr := erc20MAcc.Account.BaseAccount.Address
testutil.AssertBalance(t, ctx, rollapp1, erc20MAccAddr, dymensionIBCDenom, transferData.Amount)
// erc20MAcc, err := rollapp1.Validators[0].QueryModuleAccount(ctx, "erc20")
// require.NoError(t, err)
// erc20MAccAddr := erc20MAcc.Account.BaseAccount.Address
// testutil.AssertBalance(t, ctx, rollapp1, erc20MAccAddr, dymensionIBCDenom, transferData.Amount)

cmd := append([]string{rollapp1.FullNodes[0].Chain.Config().Bin}, "dymint", "show-sequencer", "--home", rollapp1.FullNodes[0].HomeDir())
pub1, _, err := rollapp1.FullNodes[0].Exec(ctx, cmd, nil)
Expand Down Expand Up @@ -1786,8 +1786,8 @@ func Test_HardFork_KickProposer_Wasm(t *testing.T) {
require.NoError(t, err)

// Get the IBC denom
dymensionTokenDenom = transfertypes.GetPrefixedDenom(channel.Counterparty.PortID, channel.Counterparty.ChannelID, dymension.Config().Denom)
dymensionIBCDenom = transfertypes.ParseDenomTrace(dymensionTokenDenom).IBCDenom()
// dymensionTokenDenom = transfertypes.GetPrefixedDenom(channel.Counterparty.PortID, channel.Counterparty.ChannelID, dymension.Config().Denom)
// dymensionIBCDenom = transfertypes.ParseDenomTrace(dymensionTokenDenom).IBCDenom()

testutil.AssertBalance(t, ctx, dymension, dymensionUserAddr, dymension.Config().Denom, dymensionOrigBal.Sub(transferData.Amount))
// erc20MAcc, err = rollapp1.Validators[0].QueryModuleAccount(ctx, "erc20")
Expand Down
Loading

0 comments on commit 096ac43

Please sign in to comment.