Skip to content

Commit

Permalink
Add unit test case for MsgExec (#446)
Browse files Browse the repository at this point in the history
  • Loading branch information
StrathCole authored Mar 7, 2024
1 parent ec9105c commit cb68e88
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions custom/auth/ante/fee_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,20 @@ func (s *AnteTestSuite) TestTaxExemption() {
// tax this one hence burn amount is fee amount
minFeeAmount: feeAmt,
expectProceeds: feeAmt,
}, {
name: "MsgExec(MsgSend(normal -> normal))",
msgSigner: privs[2],
msgCreator: func() []sdk.Msg {
var msgs []sdk.Msg

msg1 := authz.NewMsgExec(addrs[1], []sdk.Msg{banktypes.NewMsgSend(addrs[2], addrs[3], sdk.NewCoins(sendCoin))})
msgs = append(msgs, &msg1)

return msgs
},
// tax this one hence burn amount is fee amount
minFeeAmount: feeAmt,
expectProceeds: feeAmt,
}, {
name: "MsgSend(exemption -> normal), MsgSend(exemption -> exemption)",
msgSigner: privs[0],
Expand Down

0 comments on commit cb68e88

Please sign in to comment.