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
a5a74808
Commit
a5a74808
authored
Aug 04, 2015
by
Alexandre Van de Sande
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated javascript on newly named 'console deploy'
parent
f8e92eff
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
index.html
index.html
+8
-5
No files found.
index.html
View file @
a5a74808
...
@@ -239,12 +239,15 @@ var gethDeploy = function(contractName, interface, bytecode){
...
@@ -239,12 +239,15 @@ var gethDeploy = function(contractName, interface, bytecode){
"
\
n data: '"
+
bytecode
+
"', "
+
"
\
n data: '"
+
bytecode
+
"', "
+
"
\
n gas: 1000000"
+
"
\
n gas: 1000000"
+
"
\
n }, function(e, contract){"
+
"
\
n }, function(e, contract){"
+
"
\
n if (typeof contract.address != 'undefined') {"
+
"
\
n if(!e) {"
+
"
\
n console.log(e, contract);"
+
"
\
n if(!contract.address) {"
+
"
\
n console.log('Contract mined! address: ' + contract.address + ' transactionHash: ' + contract.transactionHash);"
+
"
\
n console.log('Contract transaction sent! TransactionHash: ' + contract.transactionHash + ' waiting to be mined...');"
+
"
\
n } else {"
+
"
\
n console.log('Contract mined! Address: ' + contract.address);"
+
"
\
n console.log(contract);"
+
"
\
n }"
+
"
\
n }})"
;
"
\
n }})"
;
return
code
;
return
code
;
}
}
...
@@ -258,7 +261,7 @@ var renderContracts = function(data, source) {
...
@@ -258,7 +261,7 @@ var renderContracts = function(data, source) {
.
append
(
$
(
'<div/>'
).
text
((
contract
.
bytecode
.
length
/
2
)
+
' bytes'
))
.
append
(
$
(
'<div/>'
).
text
((
contract
.
bytecode
.
length
/
2
)
+
' bytes'
))
.
append
(
tableRow
(
'Bytecode'
,
contract
.
bytecode
))
.
append
(
tableRow
(
'Bytecode'
,
contract
.
bytecode
))
.
append
(
tableRow
(
'Interface'
,
contract
[
'interface'
]))
.
append
(
tableRow
(
'Interface'
,
contract
[
'interface'
]))
.
append
(
textRow
(
'
Geth
deploy'
,
gethDeploy
(
contractName
.
toLowerCase
(),
contract
[
'interface'
],
contract
.
bytecode
)))
.
append
(
textRow
(
'
Console
deploy'
,
gethDeploy
(
contractName
.
toLowerCase
(),
contract
[
'interface'
],
contract
.
bytecode
)))
.
append
(
getDetails
(
contract
,
source
,
contractName
));
.
append
(
getDetails
(
contract
,
source
,
contractName
));
$
(
'#output'
).
append
(
contractOutput
);
$
(
'#output'
).
append
(
contractOutput
);
}
}
...
...
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