diff --git a/src/helpers/swapErc20.ts b/src/helpers/swapErc20.ts index a30ca9b5..9baa0128 100644 --- a/src/helpers/swapErc20.ts +++ b/src/helpers/swapErc20.ts @@ -1,4 +1,5 @@ import { SwapERC20 } from "@airswap/libraries"; +import { mainnets } from "@airswap/utils"; import { ethers } from "ethers"; @@ -573,7 +574,7 @@ export const getSwapErc20Contract = ( providerOrSigner: ethers.providers.Provider | ethers.Signer, chainId: number ): ethers.Contract => { - if (!shouldOverride || chainId !== 1) { + if (!shouldOverride || !mainnets.includes(chainId)) { return SwapERC20.getContract(providerOrSigner, chainId); }