From a5eadbae40ff47055f5516364151e0b30afc1cc9 Mon Sep 17 00:00:00 2001 From: Bruce Riley Date: Wed, 18 May 2022 15:36:45 +0000 Subject: [PATCH] Make relayer get gas price for fantom too --- relayer/spy_relayer/src/relayer/evm.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/relayer/spy_relayer/src/relayer/evm.ts b/relayer/spy_relayer/src/relayer/evm.ts index 7f329a840..c1fe8218b 100644 --- a/relayer/spy_relayer/src/relayer/evm.ts +++ b/relayer/spy_relayer/src/relayer/evm.ts @@ -1,6 +1,7 @@ import { Bridge__factory, CHAIN_ID_CELO, + CHAIN_ID_FANTOM, CHAIN_ID_KLAYTN, CHAIN_ID_POLYGON, getIsTransferCompletedEth, @@ -87,8 +88,8 @@ export async function relayEVM( maxFeePerGas: feeData.maxFeePerGas?.mul(50) || undefined, maxPriorityFeePerGas: feeData.maxPriorityFeePerGas?.mul(50) || undefined, }; - } else if (chainConfigInfo.chainId === CHAIN_ID_KLAYTN) { - // Klaytn requires specifying gasPrice + } else if (chainConfigInfo.chainId === CHAIN_ID_KLAYTN || chainConfigInfo.chainId === CHAIN_ID_FANTOM) { + // Klaytn and Fantom require specifying gasPrice overrides = { gasPrice: (await signer.getGasPrice()).toString() }; } const bridge = Bridge__factory.connect(