You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AllowedMsgAllowance does not subtract the fees from spend_limit. The granter pays the fee correctly, and the module checks spend_limit so if the requested amount of fee is greater than the limit, it rejects the transaction. However, after the transaction, spend_limit, which should have been subtracted by the amount of fee, is intact.
Summary of Bug
AllowedMsgAllowance does not subtract the fees from
spend_limit
. The granter pays the fee correctly, and the module checksspend_limit
so if the requested amount of fee is greater than the limit, it rejects the transaction. However, after the transaction,spend_limit
, which should have been subtracted by the amount of fee, is intact.I found the same issue on cosmos-sdk too.
Version
bc28e49
Steps to Reproduce
$ simd tx feegrant grant $granter $grantee --spend-limit $limit --allowed-messages "/lbm.bank.v1.MsgSend"
$ simd query feegrant grants $grantee // remember spend_limit
$ simd tx bank send $grantee $other $sendamount --fee-account $granter --fees $fee
$ simd query feegrant grants $grantee // spend_limit has not decreased
For Admin Use
The text was updated successfully, but these errors were encountered: