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
3d04df42
Commit
3d04df42
authored
Jun 28, 2018
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't trigger event for debugging start
parent
52f582f7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
9 deletions
+4
-9
app.js
src/app.js
+1
-6
txLogger.js
src/app/execution/txLogger.js
+3
-3
No files found.
src/app.js
View file @
3d04df42
...
@@ -586,15 +586,10 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
...
@@ -586,15 +586,10 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
self
.
_view
.
transactionDebugger
.
addProvider
(
'web3'
,
executionContext
.
internalWeb3
())
self
.
_view
.
transactionDebugger
.
addProvider
(
'web3'
,
executionContext
.
internalWeb3
())
self
.
_view
.
transactionDebugger
.
switchProvider
(
executionContext
.
getProvider
())
self
.
_view
.
transactionDebugger
.
switchProvider
(
executionContext
.
getProvider
())
var
txLogger
=
new
TxLogger
()
var
txLogger
=
new
TxLogger
()
// eslint-disable-line
txLogger
.
event
.
register
(
'debugRequested'
,
(
hash
)
=>
{
self
.
startdebugging
(
hash
)
})
var
previousInput
=
''
var
previousInput
=
''
var
saveTimeout
=
null
var
saveTimeout
=
null
function
editorOnChange
()
{
function
editorOnChange
()
{
var
currentFile
=
self
.
_components
.
config
.
get
(
'currentFile'
)
var
currentFile
=
self
.
_components
.
config
.
get
(
'currentFile'
)
if
(
!
currentFile
)
{
if
(
!
currentFile
)
{
...
...
src/app/execution/txLogger.js
View file @
3d04df42
...
@@ -120,7 +120,6 @@ var css = csjs`
...
@@ -120,7 +120,6 @@ var css = csjs`
}`
}`
/**
/**
* This just export a function that register to `newTransaction` and forward them to the logger.
* This just export a function that register to `newTransaction` and forward them to the logger.
* Emit debugRequested
*
*
*/
*/
class
TxLogger
{
class
TxLogger
{
...
@@ -141,7 +140,8 @@ class TxLogger {
...
@@ -141,7 +140,8 @@ class TxLogger {
editorPanel
:
this
.
_components
.
registry
.
get
(
'editorpanel'
).
api
,
editorPanel
:
this
.
_components
.
registry
.
get
(
'editorpanel'
).
api
,
txListener
:
this
.
_components
.
registry
.
get
(
'txlistener'
).
api
,
txListener
:
this
.
_components
.
registry
.
get
(
'txlistener'
).
api
,
eventsDecoder
:
this
.
_components
.
registry
.
get
(
'eventsdecoder'
).
api
,
eventsDecoder
:
this
.
_components
.
registry
.
get
(
'eventsdecoder'
).
api
,
compiler
:
this
.
_components
.
registry
.
get
(
'compiler'
).
api
compiler
:
this
.
_components
.
registry
.
get
(
'compiler'
).
api
,
app
:
this
.
_components
.
registry
.
get
(
'app'
).
api
}
}
this
.
logKnownTX
=
this
.
_deps
.
editorPanel
.
registerCommand
(
'knownTransaction'
,
(
args
,
cmds
,
append
)
=>
{
this
.
logKnownTX
=
this
.
_deps
.
editorPanel
.
registerCommand
(
'knownTransaction'
,
(
args
,
cmds
,
append
)
=>
{
...
@@ -205,7 +205,7 @@ function debug (e, data, self) {
...
@@ -205,7 +205,7 @@ function debug (e, data, self) {
if
(
data
.
tx
.
isCall
&&
data
.
tx
.
envMode
!==
'vm'
)
{
if
(
data
.
tx
.
isCall
&&
data
.
tx
.
envMode
!==
'vm'
)
{
modalDialog
.
alert
(
'Cannot debug this call. Debugging calls is only possible in JavaScript VM mode.'
)
modalDialog
.
alert
(
'Cannot debug this call. Debugging calls is only possible in JavaScript VM mode.'
)
}
else
{
}
else
{
self
.
event
.
trigger
(
'debugRequested'
,
[
data
.
tx
.
hash
]
)
self
.
_deps
.
app
.
startdebugging
(
data
.
tx
.
hash
)
}
}
}
}
...
...
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