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
d59a2970
Commit
d59a2970
authored
Jun 06, 2016
by
Alex Beregszaszi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Standard: include braces
parent
c66af27e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
compiler-worker.js
src/app/compiler-worker.js
+4
-5
renderer.js
src/app/renderer.js
+2
-1
No files found.
src/app/compiler-worker.js
View file @
d59a2970
...
...
@@ -13,8 +13,7 @@ module.exports = function (self) {
importScripts
(
data
.
data
);
version
=
Module
.
cwrap
(
"version"
,
"string"
,
[]);
if
(
'_compileJSONCallback'
in
Module
)
{
if
(
'_compileJSONCallback'
in
Module
)
{
var
compileJSONInternal
=
Module
.
cwrap
(
"compileJSONCallback"
,
"string"
,
[
"string"
,
"number"
,
"number"
]);
var
missingInputCallback
=
Module
.
Runtime
.
addFunction
(
function
(
path
)
{
missingInputs
.
push
(
Module
.
Pointer_stringify
(
path
));
...
...
@@ -22,11 +21,11 @@ module.exports = function (self) {
compileJSON
=
function
(
input
,
optimize
)
{
return
compileJSONInternal
(
input
,
optimize
,
missingInputCallback
);
};
}
else
if
(
'_compileJSONMulti'
in
Module
)
}
else
if
(
'_compileJSONMulti'
in
Module
)
{
compileJSON
=
Module
.
cwrap
(
"compileJSONMulti"
,
"string"
,
[
"string"
,
"number"
]);
else
}
else
{
compileJSON
=
Module
.
cwrap
(
"compileJSON"
,
"string"
,
[
"string"
,
"number"
]);
}
postMessage
({
cmd
:
'versionLoaded'
,
data
:
version
(),
...
...
src/app/renderer.js
View file @
d59a2970
...
...
@@ -130,8 +130,9 @@ function Renderer (editor, compiler, updateFiles) {
.
append
(
tableRow
(
'Solidity Interface'
,
contract
.
solidity_interface
))
.
append
(
tableRow
(
'Opcodes'
,
contract
.
opcodes
));
var
funHashes
=
''
;
for
(
var
fun
in
contract
.
functionHashes
)
for
(
var
fun
in
contract
.
functionHashes
)
{
funHashes
+=
contract
.
functionHashes
[
fun
]
+
' '
+
fun
+
'
\
n'
;
}
details
.
append
(
$
(
'<span class="col1">Functions</span>'
));
details
.
append
(
$
(
'<pre/>'
).
text
(
funHashes
));
details
.
append
(
$
(
'<span class="col1">Gas Estimates</span>'
));
...
...
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