|
|
@ -70,8 +70,8 @@ module.exports = { |
|
|
|
|
|
|
|
|
|
|
|
code += '\n {' + |
|
|
|
code += '\n {' + |
|
|
|
'\n from: web3.eth.accounts[0], ' + |
|
|
|
'\n from: web3.eth.accounts[0], ' + |
|
|
|
"\n data: '" + bytecode + "', " + |
|
|
|
"\n data: '0x" + bytecode + "', " + |
|
|
|
'\n gas: 4700000' + |
|
|
|
"\n gas: '4700000'" + |
|
|
|
'\n }, function (e, contract){' + |
|
|
|
'\n }, function (e, contract){' + |
|
|
|
'\n console.log(e, contract);' + |
|
|
|
'\n console.log(e, contract);' + |
|
|
|
"\n if (typeof contract.address !== 'undefined') {" + |
|
|
|
"\n if (typeof contract.address !== 'undefined') {" + |
|
|
|