From 8cd8d29991fde86ea32e71cd6d7eb5053416633d Mon Sep 17 00:00:00 2001 From: pinglanlu Date: Mon, 11 Nov 2024 19:10:59 +0800 Subject: [PATCH] chore(x): fix some typos in comment Signed-off-by: pinglanlu --- x/bank/v2/keeper/keeper.go | 2 +- x/bank/v2/keeper/keeper_test.go | 2 +- x/circuit/types/permission.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/x/bank/v2/keeper/keeper.go b/x/bank/v2/keeper/keeper.go index 833fb298ef6f..7a9af55f3733 100644 --- a/x/bank/v2/keeper/keeper.go +++ b/x/bank/v2/keeper/keeper.go @@ -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 { diff --git a/x/bank/v2/keeper/keeper_test.go b/x/bank/v2/keeper/keeper_test.go index 2920d0aea040..47a946c1ffa1 100644 --- a/x/bank/v2/keeper/keeper_test.go +++ b/x/bank/v2/keeper/keeper_test.go @@ -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") diff --git a/x/circuit/types/permission.go b/x/circuit/types/permission.go index bac736066c2d..c176f83e8aaa 100644 --- a/x/circuit/types/permission.go +++ b/x/circuit/types/permission.go @@ -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: