Skip to content

Commit

Permalink
fix: wrong logic in handling tax for MsgExec (#433)
Browse files Browse the repository at this point in the history
  • Loading branch information
fragwuerdig authored Feb 24, 2024
1 parent 2709784 commit 772da91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom/auth/ante/fee_tax.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func FilterMsgAndComputeTax(ctx sdk.Context, tk TreasuryKeeper, msgs ...sdk.Msg)

case *authz.MsgExec:
messages, err := msg.GetMessages()
if err != nil {
if err == nil {
taxes = taxes.Add(FilterMsgAndComputeTax(ctx, tk, messages...)...)
}
}
Expand Down

0 comments on commit 772da91

Please sign in to comment.