Skip to content

Commit

Permalink
x/erc20: disable denom and route check
Browse files Browse the repository at this point in the history
  • Loading branch information
rkollar committed Dec 4, 2024
1 parent fd1b8fc commit 38f292e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/erc20/keeper/ibc_callbacks.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func (k Keeper) OnRecvPacket(
// IsNativeFromSourceChain will check if the coin is native from the source chain.
// If the coin denom starts with `factory/` then it is a token factory coin, and we should not convert it
// NOTE: Check https://docs.osmosis.zone/osmosis-core/modules/tokenfactory/ for more information
case !found && strings.HasPrefix(coin.Denom, "ibc/") && ibc.IsBaseDenomFromSourceChain(data.Denom):
case !found && strings.HasPrefix(coin.Denom, "ibc/"): //&& ibc.IsBaseDenomFromSourceChain(data.Denom):
tokenPair, err := k.RegisterERC20Extension(ctx, coin.Denom)
if err != nil {
return channeltypes.NewErrorAcknowledgement(err)
Expand Down

0 comments on commit 38f292e

Please sign in to comment.