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
f69e6b2f
Commit
f69e6b2f
authored
Oct 04, 2018
by
Iuri Matias
Committed by
yann300
Nov 13, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor; simplify old debug method
parent
b9a0699c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
16 deletions
+3
-16
debugger.js
src/app/debugger/debugger/debugger.js
+2
-0
debuggerUI.js
src/app/debugger/debuggerUI.js
+1
-16
No files found.
src/app/debugger/debugger/debugger.js
View file @
f69e6b2f
...
@@ -85,6 +85,8 @@ Debugger.prototype.debug = function (blockNumber, txNumber, tx, loadingCb) {
...
@@ -85,6 +85,8 @@ Debugger.prototype.debug = function (blockNumber, txNumber, tx, loadingCb) {
return
return
}
}
self
.
debugger
.
solidityProxy
.
reset
({})
if
(
tx
)
{
if
(
tx
)
{
if
(
!
tx
.
to
)
{
if
(
!
tx
.
to
)
{
tx
.
to
=
traceHelper
.
contractCreationToken
(
'0'
)
tx
.
to
=
traceHelper
.
contractCreationToken
(
'0'
)
...
...
src/app/debugger/debuggerUI.js
View file @
f69e6b2f
...
@@ -121,22 +121,7 @@ class DebuggerUI {
...
@@ -121,22 +121,7 @@ class DebuggerUI {
}
}
debug
(
txHash
)
{
debug
(
txHash
)
{
const
self
=
this
this
.
startDebugging
(
null
,
txHash
,
null
)
let
web3
=
executionContext
.
web3
()
web3
.
eth
.
getTransaction
(
txHash
,
(
error
,
tx
)
=>
{
if
(
error
)
{
return
console
.
error
(
"coudn't get txHash: "
+
error
)
}
self
.
transactionDebugger
.
debugger
.
solidityProxy
.
reset
({})
if
(
tx
instanceof
Object
)
{
self
.
txBrowser
.
load
(
tx
.
hash
,
tx
)
self
.
startDebugging
(
null
,
tx
.
hash
,
tx
)
}
else
if
(
tx
instanceof
String
)
{
self
.
txBrowser
.
load
(
tx
)
self
.
startDebugging
(
null
,
tx
)
}
})
}
}
render
()
{
render
()
{
...
...
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