chore(x): fix some typos in comment (#22508)
Signed-off-by: pinglanlu <pinglanlu@outlook.com>
This commit is contained in:
parent
d38d026356
commit
370ee14df1
@ -88,7 +88,7 @@ func (k Keeper) MintCoins(ctx context.Context, addr []byte, amounts sdk.Coins) e
|
||||
}
|
||||
|
||||
// SendCoins transfers amt coins from a sending account to a receiving account.
|
||||
// Function take sender & receipient as []byte.
|
||||
// Function take sender & recipient as []byte.
|
||||
// They can be sdk address or module name.
|
||||
// An error is returned upon failure.
|
||||
func (k Keeper) SendCoins(ctx context.Context, from, to []byte, amt sdk.Coins) error {
|
||||
|
||||
@ -217,7 +217,7 @@ func (suite *KeeperTestSuite) TestSendCoins_WithRestriction() {
|
||||
}
|
||||
suite.bankKeeper.AppendGlobalSendRestriction(amtRestrictFunc)
|
||||
|
||||
// Pass the 1st but failt at the 2nd
|
||||
// Pass the 1st but failed at the 2nd
|
||||
err = suite.bankKeeper.SendCoins(ctx, accAddrs[0], accAddrs[1], sendAmt)
|
||||
require.Error(err)
|
||||
require.Contains(err.Error(), "Allow only one denom per one send")
|
||||
|
||||
@ -12,7 +12,7 @@ func (p *Permissions) Validation() error {
|
||||
|
||||
p.LimitTypeUrls = MsgTypeURLValidation(p.LimitTypeUrls)
|
||||
case p.Level == Permissions_LEVEL_ALL_MSGS || p.Level == Permissions_LEVEL_SUPER_ADMIN:
|
||||
// if permission is all msg or super addmin, LimitTypeUrls array clear
|
||||
// if permission is all msg or super admin, LimitTypeUrls array clear
|
||||
// all p.LimitTypeUrls since we not use this field
|
||||
p.LimitTypeUrls = nil
|
||||
default:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user