Commit 7c19d384 authored by Simon de la Rouviere's avatar Simon de la Rouviere

Fixed error that came in with new Pudding for contract creation.

parent cdb87bed
......@@ -33,6 +33,7 @@ var TokenPage = React.createClass({
//it is going to want to try and use HumanStandardToken ABI, hoping that is this ERC20 version of the token.
var web3_token = web3.eth.contract(HumanStandardToken.abi).at(this.props.params.contract_address); //for reflux-tx
console.log(web3_token);
window.token_c = web3_token; //for debugging
this.setState({web3_token: web3_token});
var that = this;
......
......@@ -16,6 +16,10 @@ var TxForm = React.createClass({
txArgs: [],
};
},
componentDidMount: function() {
/*console.log(HumanStandardToken.prototype);
console.log(HumanStandardToken.prototype.binary);*/
},
componentDidUpdate: function() {
//first props are passed only after it mounted.
//has to re-uptake state after a page refresh.
......@@ -77,7 +81,8 @@ var TxForm = React.createClass({
//args[2] = uint8 _decimalUnits,
//args[3] = string _tokenSymbol
//var creation_data = ST.new.getData(args[0], args[1], args[2], args[3], {from: addr, data: "0x" + HumanStandardToken.prototype.binary, gasPrice: 50000000000, gas: 3100000});
ST.new(args[0], args[1], args[2], args[3], {from: addr, data: "0x" + HumanStandardToken.prototype.binary, gasPrice: 20000000000, gas: 1000000}, function(err, result) {
ST.new(args[0], args[1], args[2], args[3], {from: addr, data: HumanStandardToken.prototype.binary, gasPrice: 20000000000, gas: 1000000}, function(err, result) {
//NOTE: This callback fires twice. Once tx hash comes in. Then when mined.
if(err) {
console.log(err);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment