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
1eca2fa1
Commit
1eca2fa1
authored
May 24, 2016
by
Alex Beregszaszi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'interface' is a reserved JS keyword
parent
b99493ba
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
app.js
src/app.js
+5
-5
No files found.
src/app.js
View file @
1eca2fa1
...
...
@@ -860,15 +860,15 @@ var run = function() {
}
};
var
gethDeploy
=
function
(
contractName
,
i
nterface
,
bytecode
){
var
gethDeploy
=
function
(
contractName
,
jsonI
nterface
,
bytecode
){
var
code
=
""
;
var
funABI
=
getConstructorInterface
(
$
.
parseJSON
(
i
nterface
));
var
funABI
=
getConstructorInterface
(
$
.
parseJSON
(
jsonI
nterface
));
$
.
each
(
funABI
.
inputs
,
function
(
i
,
inp
)
{
code
+=
"var "
+
inp
.
name
+
" = /* var of type "
+
inp
.
type
+
" here */ ;
\
n"
;
});
code
+=
"var "
+
contractName
+
"Contract = web3.eth.contract("
+
i
nterface
.
replace
(
"
\
n"
,
""
)
+
");"
code
+=
"var "
+
contractName
+
"Contract = web3.eth.contract("
+
jsonI
nterface
.
replace
(
"
\
n"
,
""
)
+
");"
+
"
\
nvar "
+
contractName
+
" = "
+
contractName
+
"Contract.new("
;
$
.
each
(
funABI
.
inputs
,
function
(
i
,
inp
)
{
...
...
@@ -890,8 +890,8 @@ var run = function() {
return
code
;
};
var
combined
=
function
(
contractName
,
i
nterface
,
bytecode
){
return
JSON
.
stringify
([{
name
:
contractName
,
interface
:
i
nterface
,
bytecode
:
bytecode
}]);
var
combined
=
function
(
contractName
,
jsonI
nterface
,
bytecode
){
return
JSON
.
stringify
([{
name
:
contractName
,
interface
:
jsonI
nterface
,
bytecode
:
bytecode
}]);
};
var
renderContracts
=
function
(
data
,
source
)
{
...
...
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