Make relayer get gas price for fantom too

This commit is contained in:
Bruce Riley 2022-05-18 15:36:45 +00:00 committed by Evan Gray
parent f9697f7c58
commit a5eadbae40
1 changed files with 3 additions and 2 deletions

View File

@ -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(