From e26b17e6e5adfd75ff081046a8bae0dcecdeab6c Mon Sep 17 00:00:00 2001 From: Daniel T <30197399+danwt@users.noreply.github.com> Date: Tue, 3 Dec 2024 21:01:51 +0000 Subject: [PATCH] feat(rollapp): make the test for updating min bond a bit clearer (#1607) --- x/rollapp/keeper/msg_server_update_rollapp_test.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/x/rollapp/keeper/msg_server_update_rollapp_test.go b/x/rollapp/keeper/msg_server_update_rollapp_test.go index 8d26e43eb..ccde34d75 100644 --- a/x/rollapp/keeper/msg_server_update_rollapp_test.go +++ b/x/rollapp/keeper/msg_server_update_rollapp_test.go @@ -7,6 +7,7 @@ import ( authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" "github.com/dymensionxyz/gerr-cosmos/gerrc" + "github.com/dymensionxyz/sdk-utils/utils/ucoin" "github.com/dymensionxyz/sdk-utils/utils/uptr" "github.com/dymensionxyz/dymension/v3/x/rollapp/types" @@ -33,6 +34,7 @@ func (s *RollappTestSuite) TestUpdateRollapp() { Owner: alice, RollappId: rollappId, InitialSequencer: initialSequencerAddress, + MinSequencerBond: ucoin.SimpleMul(types.DefaultMinSequencerBondGlobalCoin, 3), Metadata: &mockRollappMetadata, GenesisInfo: &types.GenesisInfo{ Bech32Prefix: "new", @@ -51,10 +53,9 @@ func (s *RollappTestSuite) TestUpdateRollapp() { Owner: alice, RollappId: rollappId, InitialSequencer: initialSequencerAddress, - MinSequencerBond: sdk.NewCoins(types.DefaultMinSequencerBondGlobalCoin), - - VmType: types.Rollapp_EVM, - Metadata: &mockRollappMetadata, + MinSequencerBond: sdk.NewCoins(ucoin.SimpleMul(types.DefaultMinSequencerBondGlobalCoin, 3)), + VmType: types.Rollapp_EVM, + Metadata: &mockRollappMetadata, GenesisInfo: types.GenesisInfo{ GenesisChecksum: "new_checksum", Bech32Prefix: "new",