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
0fdf5d6a
Commit
0fdf5d6a
authored
Nov 02, 2016
by
chriseth
Committed by
GitHub
Nov 02, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #131 from ethereum/fixvmmode
Fix VM mode (safari/ie)
parents
0ea03645
a66f9840
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
web3VmProvider.js
src/web3Provider/web3VmProvider.js
+3
-2
No files found.
src/web3Provider/web3VmProvider.js
View file @
0fdf5d6a
var
ethJSUtil
=
require
(
'ethereumjs-util'
)
var
util
=
require
(
'../helpers/util'
)
var
util
=
require
(
'../helpers/util'
)
var
Web3
=
require
(
'web3'
)
function
web3VmProvider
()
{
function
web3VmProvider
()
{
var
self
=
this
var
self
=
this
this
.
web3
=
new
Web3
()
this
.
vm
this
.
vm
this
.
vmTraces
=
{}
this
.
vmTraces
=
{}
this
.
txs
=
{}
this
.
txs
=
{}
...
@@ -42,7 +43,7 @@ web3VmProvider.prototype.releaseCurrentHash = function () {
...
@@ -42,7 +43,7 @@ web3VmProvider.prototype.releaseCurrentHash = function () {
web3VmProvider
.
prototype
.
txWillProcess
=
function
(
self
,
data
)
{
web3VmProvider
.
prototype
.
txWillProcess
=
function
(
self
,
data
)
{
self
.
incr
++
self
.
incr
++
self
.
processingHash
=
'0x'
+
ethJSUtil
.
sha3
([
data
.
r
,
data
.
s
,
data
.
v
,
self
.
incr
]).
join
(
''
)
self
.
processingHash
=
this
.
web3
.
sha3
([
data
.
r
,
data
.
s
,
data
.
v
,
self
.
incr
].
join
(
''
)
)
self
.
vmTraces
[
self
.
processingHash
]
=
{
self
.
vmTraces
[
self
.
processingHash
]
=
{
gas
:
'0x0'
,
gas
:
'0x0'
,
return
:
'0x0'
,
return
:
'0x0'
,
...
...
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