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
962c1409
Commit
962c1409
authored
Dec 08, 2016
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix localdecoder
parent
b294ef7b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
localDecoder.js
src/solidity/localDecoder.js
+13
-10
No files found.
src/solidity/localDecoder.js
View file @
962c1409
'use strict'
class
LocalDecoder
{
solidityLocals
(
vmtraceIndex
,
internalTreeCall
,
stack
,
memory
)
{
var
scope
=
this
.
internalTreeCall
.
findScope
(
vmtraceIndex
)
var
locals
=
{}
for
(
var
local
of
scope
.
locals
)
{
if
(
local
.
type
.
decodeLocals
)
{
locals
[
local
.
name
]
=
local
.
type
.
decodeLocals
(
local
.
stackHeight
,
stack
,
memory
)
}
function
solidityLocals
(
vmtraceIndex
,
internalTreeCall
,
stack
,
memory
)
{
var
scope
=
internalTreeCall
.
findScope
(
vmtraceIndex
)
var
locals
=
{}
for
(
var
local
in
scope
.
locals
)
{
let
variable
=
scope
.
locals
[
local
]
if
(
variable
.
type
.
decodeLocals
)
{
locals
[
variable
.
name
]
=
variable
.
type
.
decodeLocals
(
variable
.
stackHeight
,
stack
,
memory
)
}
else
{
locals
[
variable
.
name
]
=
''
}
return
locals
}
return
locals
}
module
.
exports
=
LocalDecoder
module
.
exports
=
{
solidityLocals
:
solidityLocals
}
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