Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
1fa4e1ee
Commit
1fa4e1ee
authored
Jun 15, 2021
by
aniket-engg
Committed by
Aniket
Jun 15, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove timestamp for kovan
parent
6c99904f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
txRunnerWeb3.ts
libs/remix-lib/src/execution/txRunnerWeb3.ts
+8
-2
No files found.
libs/remix-lib/src/execution/txRunnerWeb3.ts
View file @
1fa4e1ee
...
...
@@ -72,15 +72,21 @@ 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
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
})
})
})
}
this
.
getWeb3
().
eth
.
estimateGas
(
tx
,
(
err
,
gasEstimation
)
=>
{
if
(
err
&&
err
.
message
.
indexOf
(
'Invalid JSON RPC response'
)
!==
-
1
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment