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
0b9e20d7
Commit
0b9e20d7
authored
Aug 22, 2019
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
listen on vyper compiler
parent
e8b17869
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
dropdownlogic.js
src/app/tabs/runTab/model/dropdownlogic.js
+9
-3
No files found.
src/app/tabs/runTab/model/dropdownlogic.js
View file @
0b9e20d7
...
@@ -28,13 +28,19 @@ class DropdownLogic {
...
@@ -28,13 +28,19 @@ class DropdownLogic {
// TODO: can be moved up; the event in contractDropdown will have to refactored a method instead
// TODO: can be moved up; the event in contractDropdown will have to refactored a method instead
listenToCompilationEvents
()
{
listenToCompilationEvents
()
{
this
.
runView
.
on
(
'solidity'
,
'compilationFinished'
,
(
file
,
source
,
languageVersion
,
data
)
=>
{
let
broadcastCompilationResult
=
(
file
,
source
,
languageVersion
,
data
)
=>
{
// TODO check whether the tab is configured
// TODO check whether the tab is configured
let
compiler
=
new
CompilerAbstract
(
languageVersion
,
data
,
source
)
let
compiler
=
new
CompilerAbstract
(
languageVersion
,
data
,
source
)
this
.
compilersArtefacts
[
languageVersion
]
=
compiler
this
.
compilersArtefacts
[
languageVersion
]
=
compiler
this
.
compilersArtefacts
[
'__last'
]
=
compiler
this
.
compilersArtefacts
[
'__last'
]
=
compiler
this
.
event
.
trigger
(
'newlyCompiled'
,
[
true
,
data
,
source
,
compiler
,
languageVersion
])
this
.
event
.
trigger
(
'newlyCompiled'
,
[
true
,
data
,
source
,
compiler
,
languageVersion
,
file
])
})
}
this
.
runView
.
on
(
'solidity'
,
'compilationFinished'
,
(
file
,
source
,
languageVersion
,
data
)
=>
broadcastCompilationResult
(
file
,
source
,
languageVersion
,
data
)
)
this
.
runView
.
on
(
'vyper'
,
'compilationFinished'
,
(
file
,
source
,
languageVersion
,
data
)
=>
broadcastCompilationResult
(
file
,
source
,
languageVersion
,
data
)
)
}
}
loadContractFromAddress
(
address
,
confirmCb
,
cb
)
{
loadContractFromAddress
(
address
,
confirmCb
,
cb
)
{
...
...
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