chore(x): fix some typos in comment (#22508)

Signed-off-by: pinglanlu <pinglanlu@outlook.com>
This commit is contained in:
pinglanlu 2024-11-11 21:03:13 +08:00 committed by GitHub
parent d38d026356
commit 370ee14df1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -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 {

View File

@ -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")

View File

@ -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: