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
1d460e89
Commit
1d460e89
authored
Sep 07, 2015
by
chriseth
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2 from alexvandesande/gh-pages
updated javascript on newly named 'console deploy'
parents
27f4eb61
a5a74808
Hide 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 @
1d460e89
...
...
@@ -229,12 +229,15 @@ var gethDeploy = function(contractName, interface, bytecode){
"
\
n data: '"
+
bytecode
+
"', "
+
"
\
n gas: 1000000"
+
"
\
n }, function(e, contract){"
+
"
\
n if (typeof contract.address != 'undefined') {"
+
"
\
n console.log(e, contract);"
+
"
\
n console.log('Contract mined! address: ' + contract.address + ' transactionHash: ' + contract.transactionHash);"
+
"
\
n if(!e) {"
+
"
\
n if(!contract.address) {"
+
"
\
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 }})"
;
return
code
;
};
...
...
@@ -251,7 +254,7 @@ var renderContracts = function(data, source) {
.
append
(
tableRow
(
'Bytecode'
,
contract
.
bytecode
));
contractOutput
.
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
));
$
(
'#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