linting fix

pull/1313/head
aniket-engg 3 years ago
parent 628bb92548
commit 9b3e86d96d
  1. 12
      libs/remix-lib/src/execution/txRunnerWeb3.ts

@ -73,13 +73,13 @@ export class TxRunnerWeb3 {
if (useCall) { if (useCall) {
tx['gas'] = gasLimit tx['gas'] = gasLimit
if(this._api && this._api.isVM()) tx['timestamp'] = timestamp if (this._api && this._api.isVM()) tx['timestamp'] = timestamp
return this.getWeb3().eth.call(tx, function (error, result: any) { return this.getWeb3().eth.call(tx, function (error, result: any) {
if (error) return callback(error) if (error) return callback(error)
callback(null, { callback(null, {
result: result result: result
})
}) })
})
} }
this.getWeb3().eth.estimateGas(tx, (err, gasEstimation) => { this.getWeb3().eth.estimateGas(tx, (err, gasEstimation) => {
if (err && err.message.indexOf('Invalid JSON RPC response') !== -1) { if (err && err.message.indexOf('Invalid JSON RPC response') !== -1) {

Loading…
Cancel
Save