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:
parent
079a583041
commit
6f74add54b
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user