Skip to content

Commit 11f1eaf

Browse files
committed
do not enforce non initial deposit to contain each time all coins
1 parent 601a1f2 commit 11f1eaf

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

x/gov/keeper/deposit.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -276,10 +276,6 @@ func (keeper Keeper) validateDepositDenom(ctx context.Context, params v1.Params,
276276
denoms = append(denoms, coin.Denom)
277277
}
278278

279-
if len(depositAmount) > len(params.MinDeposit) {
280-
return errors.Wrapf(types.ErrInvalidDepositDenom, "deposited %s, but gov accepts only the following denom(s): %v", depositAmount, denoms)
281-
}
282-
283279
for _, coin := range depositAmount {
284280
if _, ok := acceptedDenoms[coin.Denom]; !ok {
285281
return errors.Wrapf(types.ErrInvalidDepositDenom, "deposited %s, but gov accepts only the following denom(s): %v", coin, denoms)

x/gov/keeper/msg_server_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ func (suite *KeeperTestSuite) TestMsgSubmitProposal() {
235235
)
236236
},
237237
expErr: true,
238-
expErrMsg: "deposited 100stake,100invalid, but gov accepts only the following denom(s): [stake]: invalid deposit denom",
238+
expErrMsg: "deposited 100invalid, but gov accepts only the following denom(s): [stake]: invalid deposit denom",
239239
},
240240
"all good": {
241241
preRun: func() (*v1.MsgSubmitProposal, error) {
@@ -838,7 +838,7 @@ func (suite *KeeperTestSuite) TestMsgDeposit() {
838838
depositor: proposer,
839839
deposit: append(minDeposit, sdk.NewCoin("ibc/badcoin", sdkmath.NewInt(1000))),
840840
expErr: true,
841-
expErrMsg: "deposited 10000000stake,1000ibc/badcoin, but gov accepts only the following denom(s): [stake]",
841+
expErrMsg: "deposited 1000ibc/badcoin, but gov accepts only the following denom(s): [stake]",
842842
},
843843
"all good": {
844844
preRun: func() uint64 {

0 commit comments

Comments
 (0)