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
8d0ef78f
Unverified
Commit
8d0ef78f
authored
Apr 28, 2020
by
yann300
Committed by
GitHub
Apr 28, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1466 from ethereum/fixInputParam
Better extraction of input/outputs params
parents
d833c974
4a0a8d8c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
+17
-4
internalCallTree.js
remix-debug/src/solidity-decoder/internalCallTree.js
+17
-4
No files found.
remix-debug/src/solidity-decoder/internalCallTree.js
View file @
8d0ef78f
...
@@ -227,10 +227,23 @@ function includeVariableDeclaration (tree, step, sourceLocation, scopeId, newLoc
...
@@ -227,10 +227,23 @@ function includeVariableDeclaration (tree, step, sourceLocation, scopeId, newLoc
tree
.
traceManager
.
getStackAt
(
step
,
(
error
,
stack
)
=>
{
tree
.
traceManager
.
getStackAt
(
step
,
(
error
,
stack
)
=>
{
if
(
!
error
)
{
if
(
!
error
)
{
var
states
=
tree
.
solidityProxy
.
extractStatesDefinitions
()
var
states
=
tree
.
solidityProxy
.
extractStatesDefinitions
()
// input params
if
(
functionDefinition
.
children
&&
functionDefinition
.
children
.
length
)
{
addParams
(
functionDefinition
.
children
[
0
],
tree
,
scopeId
,
states
,
contractName
,
previousSourceLocation
,
stack
.
length
,
functionDefinition
.
children
[
0
].
children
.
length
,
-
1
)
let
inputs
// output params
let
outputs
addParams
(
functionDefinition
.
children
[
1
],
tree
,
scopeId
,
states
,
contractName
,
previousSourceLocation
,
stack
.
length
,
0
,
1
)
for
(
const
element
of
functionDefinition
.
children
)
{
if
(
element
.
name
===
'ParameterList'
)
{
if
(
!
inputs
)
inputs
=
element
else
{
outputs
=
element
break
}
}
}
// input params
if
(
inputs
)
addParams
(
inputs
,
tree
,
scopeId
,
states
,
contractName
,
previousSourceLocation
,
stack
.
length
,
inputs
.
children
.
length
,
-
1
)
// output params
if
(
outputs
)
addParams
(
outputs
,
tree
,
scopeId
,
states
,
contractName
,
previousSourceLocation
,
stack
.
length
,
0
,
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