remove timestamp for kovan

pull/1296/head
aniket-engg 3 years ago committed by Aniket
parent 6c99904f53
commit 1fa4e1ee66
  1. 18
      libs/remix-lib/src/execution/txRunnerWeb3.ts

@ -72,13 +72,19 @@ export class TxRunnerWeb3 {
const tx = { from: from, to: to, data: data, value: value }
if (useCall) {
const tag = Date.now() // for e2e reference
tx['gas'] = gasLimit
// tx['timestamp'] = timestamp
return this.getWeb3().eth.call(tx, function (error, result: any) {
if (error) return callback(error)
callback(null, {
result: result
tx['timestamp'] = timestamp
return this._api.detectNetwork((err, network) => {
if (err) {
console.log(err)
return
} else if (network && network.name === 'Kovan') delete tx['timestamp']
return this.getWeb3().eth.call(tx, function (error, result: any) {
if (error) return callback(error)
callback(null, {
result: result
})
})
})
}

Loading…
Cancel
Save