Fix indexOf check

This commit is contained in:
Karl Kempe 2022-01-28 17:37:05 +00:00
parent 416a5ac951
commit 59c3a8965c
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ export async function getEvmGasParametersForContract(
const chainId = await getChainIdFromContract(contract);
console.info(`getEvmGasParametersForContract... chainId: ${chainId}`);
if (EVM_EIP1559_CHAIN_IDS.indexOf(chainId)) {
if (EVM_EIP1559_CHAIN_IDS.indexOf(chainId) >= 0) {
console.info(
`eip1559? chainId: ${chainId}, eip1559 chains... ${JSON.stringify(
EVM_EIP1559_CHAIN_IDS