|
|
@ -229,12 +229,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; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
@ -251,7 +254,7 @@ var renderContracts = function(data, source) { |
|
|
|
.append(tableRow('Bytecode', contract.bytecode)); |
|
|
|
.append(tableRow('Bytecode', contract.bytecode)); |
|
|
|
contractOutput |
|
|
|
contractOutput |
|
|
|
.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); |
|
|
|
} |
|
|
|
} |
|
|
|