1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

revert console.log estimateGas() result

This commit is contained in:
Miquel A. Cabot 2022-05-12 21:33:16 +02:00
parent 079a583041
commit 6f74add54b

View File

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