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
77a72647
Commit
77a72647
authored
Jul 23, 2019
by
Iuri Matias
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revert changes made to gasLimit
parent
edd7879f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
txRunner.js
remix-lib/src/execution/txRunner.js
+2
-6
No files found.
remix-lib/src/execution/txRunner.js
View file @
77a72647
...
...
@@ -94,16 +94,12 @@ 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
,
...
...
@@ -124,7 +120,7 @@ class TxRunner {
number
:
self
.
blockNumber
,
coinbase
:
coinbases
[
self
.
blockNumber
%
coinbases
.
length
],
difficulty
:
difficulties
[
self
.
blockNumber
%
difficulties
.
length
],
gasLimit
:
new
BN
(
'8000000'
).
imuln
(
1
)
gasLimit
:
new
BN
(
gasLimit
,
10
).
imuln
(
2
)
},
transactions
:
[
tx
],
uncleHeaders
:
[]
...
...
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