Skip to content

Commit

Permalink
chore(x): fix some typos in comment (#22508)
Browse files Browse the repository at this point in the history
Signed-off-by: pinglanlu <[email protected]>
  • Loading branch information
pinglanlu authored Nov 11, 2024
1 parent d38d026 commit 370ee14
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion x/bank/v2/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion x/bank/v2/keeper/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion x/circuit/types/permission.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 370ee14

Please sign in to comment.