Skip to content

Commit

Permalink
Clean up: linting, formatting, and spelling corrections (#7655)
Browse files Browse the repository at this point in the history
* clean

* Update modules/core/23-commitment/types/merkle_test.go

---------

Co-authored-by: DimitrisJim <[email protected]>
  • Loading branch information
likesToEatFish and DimitrisJim authored Dec 10, 2024
1 parent b0bfc1e commit 49c32dd
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion modules/apps/transfer/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Note, relative timeout height is not supported. Relative timeout timestamp is ad
using the {packet-timeout-timestamp} flag. If no timeout value is set then a default relative timeout value of 10 minutes is used. IBC tokens
can be automatically unwound to their native chain using the {unwind} flag. Please note that if the {unwind} flag is used, then all coins must
be IBC vouchers and share exactly the same denomination trace path, and the src-port and src-channel arguments must not be specified. Tokens can also be
automatically forwarded through multiple chains using the {fowarding} flag and specifying a comma-separated list of source portID/channelID pairs for
automatically forwarded through multiple chains using the {forwarding} flag and specifying a comma-separated list of source portID/channelID pairs for
each intermediary chain. {unwind} and {forwarding} flags can be used together to first unwind IBC tokens to their native chain and then forward them to the final destination.`),
Example: fmt.Sprintf("%s tx ibc-transfer transfer [src-port] [src-channel] [receiver] [coins]", version.AppName),
Args: cobra.RangeArgs(2, 4),
Expand Down
2 changes: 1 addition & 1 deletion modules/apps/transfer/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func (k Keeper) Transfer(goCtx context.Context, msg *types.MsgTransfer) (*types.
coins := msg.GetCoins()

if err := k.bankKeeper.IsSendEnabledCoins(ctx, coins...); err != nil {
return nil, errorsmod.Wrapf(types.ErrSendDisabled, err.Error())
return nil, errorsmod.Wrap(types.ErrSendDisabled, err.Error())
}

if k.isBlockedAddr(sender) {
Expand Down
2 changes: 1 addition & 1 deletion modules/apps/transfer/types/transfer.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion modules/core/02-client/types/height.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func SetRevisionNumber(chainID string, revision uint64) (string, error) {

splitStr := strings.Split(chainID, "-")
// swap out revision number with given revision
splitStr[len(splitStr)-1] = strconv.Itoa(int(revision))
splitStr[len(splitStr)-1] = strconv.FormatUint(revision, 10)
return strings.Join(splitStr, "-"), nil
}

Expand Down
2 changes: 1 addition & 1 deletion proto/ibc/applications/transfer/v1/transfer.proto
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ message Params {
// through which a packet must be forwarded, and an unwind boolean indicating if
// the coin should be unwinded to its native chain before forwarding.
message Forwarding {
// optional unwinding for the token transfered
// optional unwinding for the token transferred
bool unwind = 1;
// optional intermediate path through which packet will be forwarded
repeated Hop hops = 2 [(gogoproto.nullable) = false];
Expand Down

0 comments on commit 49c32dd

Please sign in to comment.