From 6f74add54bb353dcdb045202a919b4ebafcd15b4 Mon Sep 17 00:00:00 2001 From: "Miquel A. Cabot" Date: Thu, 12 May 2022 21:33:16 +0200 Subject: [PATCH] revert console.log estimateGas() result --- src/utils/ContractUtils.ts | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/utils/ContractUtils.ts b/src/utils/ContractUtils.ts index 84fb29f5..17066603 100644 --- a/src/utils/ContractUtils.ts +++ b/src/utils/ContractUtils.ts @@ -183,15 +183,7 @@ export async function estimateGas( { from: from }, - (err, estGas) => { - if (err) { - console.log('ERROR ESTIMATING GAS: ' + err) - return GASLIMIT_DEFAULT - } else { - console.log('OK ESTIMATING GAS: ' + estGas) - return estGas - } - } + (err, estGas) => (err ? GASLIMIT_DEFAULT : estGas) ) } catch (e) { LoggerInstance.error(`ERROR: Estimate gas failed!`, e)