Skip to content

Commit fb8b4c2

Browse files
committed
comment
1 parent 1fa4e1e commit fb8b4c2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libs/remix-lib/src/execution/txRunnerWeb3.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ export class TxRunnerWeb3 {
7878
if (err) {
7979
console.log(err)
8080
return
81+
// Remove `timestamp` from tx if network is Kovan
82+
// It shows: 'Error: Returned error: Invalid params: unknown field `timestamp`'
83+
// See: https://github.com/ethereum/remix-project/issues/1282
8184
} else if (network && network.name === 'Kovan') delete tx['timestamp']
8285

8386
return this.getWeb3().eth.call(tx, function (error, result: any) {

0 commit comments

Comments
 (0)