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
00629a0b
Unverified
Commit
00629a0b
authored
Feb 28, 2018
by
yann300
Committed by
GitHub
Feb 28, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #658 from ethereum/retrieveCompilationResult
retrieve compilation result from remix GUI
parents
fde4ee1e
570ceff9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
Ethdebugger.js
remix-debugger/src/ui/Ethdebugger.js
+7
-1
internalCallTree.js
remix-solidity/src/decoder/internalCallTree.js
+1
-1
No files found.
remix-debugger/src/ui/Ethdebugger.js
View file @
00629a0b
...
...
@@ -25,7 +25,11 @@ var css = csjs`
margin-left: 10px;
}
`
function
Ethdebugger
()
{
function
Ethdebugger
(
opts
)
{
this
.
opts
=
opts
||
{}
if
(
!
this
.
opts
.
compilationResult
)
this
.
opts
.
compilationResult
=
()
=>
{
return
null
}
var
self
=
this
this
.
event
=
new
EventManager
()
...
...
@@ -107,6 +111,7 @@ Ethdebugger.prototype.setCompilationResult = function (compilationResult) {
}
Ethdebugger
.
prototype
.
debug
=
function
(
tx
)
{
this
.
setCompilationResult
(
this
.
opts
.
compilationResult
())
if
(
tx
instanceof
Object
)
{
this
.
txBrowser
.
load
(
tx
.
hash
)
}
else
if
(
tx
instanceof
String
)
{
...
...
@@ -145,6 +150,7 @@ Ethdebugger.prototype.startDebugging = function (blockNumber, txIndex, tx) {
if
(
this
.
traceManager
.
isLoading
)
{
return
}
this
.
setCompilationResult
(
this
.
opts
.
compilationResult
())
this
.
statusMessage
=
'Loading trace...'
yo
.
update
(
this
.
view
,
this
.
render
())
console
.
log
(
'loading trace...'
)
...
...
remix-solidity/src/decoder/internalCallTree.js
View file @
00629a0b
...
...
@@ -200,7 +200,7 @@ function includeVariableDeclaration (tree, step, sourceLocation, scopeId, newLoc
})
}
var
functionDefinition
=
resolveFunctionDefinition
(
tree
,
step
,
previousSourceLocation
)
if
(
functionDefinition
&&
newLocation
&&
traceHelper
.
isJumpDestInstruction
(
tree
.
traceManager
.
trace
[
step
-
1
]
))
{
if
(
functionDefinition
&&
((
newLocation
&&
traceHelper
.
isJumpDestInstruction
(
tree
.
traceManager
.
trace
[
step
-
1
]))
||
functionDefinition
.
attributes
.
isConstructor
))
{
tree
.
functionCallStack
.
push
(
step
)
// means: the previous location was a function definition && JUMPDEST
// => we are at the beginning of the function and input/output are setup
...
...
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