Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Aditya <[email protected]>
  • Loading branch information
crodriguezvega and AdityaSripal authored Jun 27, 2024
1 parent 25c73c4 commit baf3fd3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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 @@ -46,7 +46,7 @@ using the {packet-timeout-timestamp} flag. If no timeout value is set then a def
can be automatically unwound to their native chain using the {unwind} flag. Please note that if the {unwind} flag is used, then the transfer should contain only
a single token. 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 each intermediary chain. {unwind} and {forwarding} flags can be used together
to unwind IBC tokens to their native chain and forward them to the final destination.`),
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.ExactArgs(4),
RunE: func(cmd *cobra.Command, args []string) error {
Expand Down
2 changes: 1 addition & 1 deletion modules/apps/transfer/keeper/forwarding.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
func (k Keeper) forwardPacket(ctx sdk.Context, data types.FungibleTokenPacketDataV2, packet channeltypes.Packet, receivedCoins sdk.Coins) error {
var nextForwardingPath types.Forwarding
if len(data.Forwarding.Hops) > 1 {
// remove the first hop since it has been completed (this chain has received the packet)
// remove the first hop since we are going to send to the first hop now and we want to propogate the rest of the hops to the receiver

Check failure on line 19 in modules/apps/transfer/keeper/forwarding.go

View workflow job for this annotation

GitHub Actions / lint

`propogate` is a misspelling of `propagate` (misspell)
nextForwardingPath = types.NewForwarding(false, data.Forwarding.Hops[1:]...)
}

Expand Down

0 comments on commit baf3fd3

Please sign in to comment.