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
7d547150
Commit
7d547150
authored
Jul 23, 2019
by
Iuri Matias
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ensure gasLimit is a BN
parent
1569d422
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
txRunner.js
remix-lib/src/execution/txRunner.js
+6
-1
No files found.
remix-lib/src/execution/txRunner.js
View file @
7d547150
...
...
@@ -94,12 +94,17 @@ class TxRunner {
}
}
runInVm
(
from
,
to
,
data
,
value
,
gasLimit
,
useCall
,
timestamp
,
callback
)
{
runInVm
(
from
,
to
,
data
,
value
,
_
gasLimit
,
useCall
,
timestamp
,
callback
)
{
const
self
=
this
var
account
=
self
.
vmaccounts
[
from
]
if
(
!
account
)
{
return
callback
(
'Invalid account selected'
)
}
let
gasLimit
=
_gasLimit
if
(
!
BN
.
isBN
(
_gasLimit
))
{
gasLimit
=
new
BN
(
_gasLimit
)
}
var
tx
=
new
EthJSTX
({
timestamp
:
timestamp
,
nonce
:
new
BN
(
account
.
nonce
++
),
...
...
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