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
4c0b3b0b
Commit
4c0b3b0b
authored
Feb 05, 2020
by
aniket-engg
Committed by
Aniket
Feb 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
anonymous locals rendering fixed
parent
e191233d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
internalCallTree.js
remix-debug/src/solidity-decoder/internalCallTree.js
+4
-3
localDecoder.js
remix-debug/src/solidity-decoder/localDecoder.js
+1
-1
No files found.
remix-debug/src/solidity-decoder/internalCallTree.js
View file @
4c0b3b0b
...
@@ -199,7 +199,7 @@ function includeVariableDeclaration (tree, step, sourceLocation, scopeId, newLoc
...
@@ -199,7 +199,7 @@ function includeVariableDeclaration (tree, step, sourceLocation, scopeId, newLoc
// so, either this is the direct value, or the offset in memory. That depends on the type.
// so, either this is the direct value, or the offset in memory. That depends on the type.
if
(
!
error
)
{
if
(
!
error
)
{
tree
.
solidityProxy
.
contractNameAt
(
step
,
(
error
,
contractName
)
=>
{
// cached
tree
.
solidityProxy
.
contractNameAt
(
step
,
(
error
,
contractName
)
=>
{
// cached
if
(
!
error
)
{
if
(
!
error
&&
variableDeclaration
.
attributes
.
name
!=
''
)
{
var
states
=
tree
.
solidityProxy
.
extractStatesDefinitions
()
var
states
=
tree
.
solidityProxy
.
extractStatesDefinitions
()
var
location
=
typesUtil
.
extractLocationFromAstVariable
(
variableDeclaration
)
var
location
=
typesUtil
.
extractLocationFromAstVariable
(
variableDeclaration
)
location
=
location
===
'default'
?
'storage'
:
location
location
=
location
===
'default'
?
'storage'
:
location
...
@@ -297,8 +297,9 @@ function addParams (parameterList, tree, scopeId, states, contractName, sourceLo
...
@@ -297,8 +297,9 @@ function addParams (parameterList, tree, scopeId, states, contractName, sourceLo
if
(
stackDepth
>=
0
)
{
if
(
stackDepth
>=
0
)
{
let
location
=
typesUtil
.
extractLocationFromAstVariable
(
param
)
let
location
=
typesUtil
.
extractLocationFromAstVariable
(
param
)
location
=
location
===
'default'
?
'memory'
:
location
location
=
location
===
'default'
?
'memory'
:
location
tree
.
scopes
[
scopeId
].
locals
[
param
.
attributes
.
name
]
=
{
const
attributesName
=
param
.
attributes
.
name
===
''
?
`$
${
inputParam
}
`
:
param
.
attributes
.
name
name
:
param
.
attributes
.
name
,
tree
.
scopes
[
scopeId
].
locals
[
attributesName
]
=
{
name
:
attributesName
,
type
:
decodeInfo
.
parseType
(
param
.
attributes
.
type
,
states
,
contractName
,
location
),
type
:
decodeInfo
.
parseType
(
param
.
attributes
.
type
,
states
,
contractName
,
location
),
stackDepth
:
stackDepth
,
stackDepth
:
stackDepth
,
sourceLocation
:
sourceLocation
sourceLocation
:
sourceLocation
...
...
remix-debug/src/solidity-decoder/localDecoder.js
View file @
4c0b3b0b
...
@@ -13,7 +13,7 @@ async function solidityLocals (vmtraceIndex, internalTreeCall, stack, memory, st
...
@@ -13,7 +13,7 @@ async function solidityLocals (vmtraceIndex, internalTreeCall, stack, memory, st
var
variable
=
scope
.
locals
[
local
]
var
variable
=
scope
.
locals
[
local
]
if
(
variable
.
stackDepth
<
stack
.
length
&&
variable
.
sourceLocation
.
start
<=
currentSourceLocation
.
start
)
{
if
(
variable
.
stackDepth
<
stack
.
length
&&
variable
.
sourceLocation
.
start
<=
currentSourceLocation
.
start
)
{
let
name
=
variable
.
name
let
name
=
variable
.
name
if
(
name
===
''
)
{
if
(
name
.
indexOf
(
'$'
)
!==
-
1
)
{
name
=
'<'
+
anonymousIncr
+
'>'
name
=
'<'
+
anonymousIncr
+
'>'
anonymousIncr
++
anonymousIncr
++
}
}
...
...
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