From d55605fb3188ec3c852ea9279d025b38976585b4 Mon Sep 17 00:00:00 2001 From: impelcrypto Date: Thu, 30 Nov 2023 19:53:26 +0900 Subject: [PATCH] fix: lint --- .../src/modules/gas-api/utils/index.ts | 26 +++++++++---------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/packages/sdk-core/src/modules/gas-api/utils/index.ts b/packages/sdk-core/src/modules/gas-api/utils/index.ts index 1a98357c..ffe1c4eb 100644 --- a/packages/sdk-core/src/modules/gas-api/utils/index.ts +++ b/packages/sdk-core/src/modules/gas-api/utils/index.ts @@ -12,15 +12,13 @@ export const getEvmGas = async (web3: Web3, selectedGasPrice: string): Promise => { const tx: TransactionConfig = isNativeToken ? { - from: fromAddress, - to: toAddress, - value: ethers.utils.parseEther(value).toString() - } + from: fromAddress, + to: toAddress, + value: ethers.utils.parseEther(value).toString() + } : { - nonce: await web3.eth.getTransactionCount(fromAddress), - from: fromAddress, - to: toAddress, - value, - data: encodedData - }; + nonce: await web3.eth.getTransactionCount(fromAddress), + from: fromAddress, + to: toAddress, + value, + data: encodedData + }; const numEstimatedGas = await web3.eth.estimateGas(tx); const estimatedGas = new BN(numEstimatedGas);