Skip to content

Commit

Permalink
Revert "SwapFromERC20 add check"
Browse files Browse the repository at this point in the history
This reverts commit c985076.
  • Loading branch information
dreamer-zq committed Apr 16, 2024
1 parent c985076 commit a04c753
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions modules/token/keeper/erc20.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,6 @@ func (k Keeper) SwapFromERC20(
receiver sdk.AccAddress,
wantedAmount sdk.Coin,
) error {
senderAcc := k.accountKeeper.GetAccount(ctx, sdk.AccAddress(sender.Bytes()))
if senderAcc != nil {
if !k.evmKeeper.SupportedKey(senderAcc.GetPubKey()) {
return errorsmod.Wrapf(types.ErrUnsupportedKey, "key %s", senderAcc.GetPubKey())
}
}

token, err := k.getTokenByMinUnit(ctx, wantedAmount.Denom)
if err != nil {
return err
Expand Down

0 comments on commit a04c753

Please sign in to comment.