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)