Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
Token-Factory
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bitsoko services
Token-Factory
Commits
7c19d384
Commit
7c19d384
authored
Aug 13, 2016
by
Simon de la Rouviere
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed error that came in with new Pudding for contract creation.
parent
cdb87bed
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
tokenpage.jsx
app/javascripts/tokenpage.jsx
+1
-0
txform.jsx
app/javascripts/txform.jsx
+6
-1
No files found.
app/javascripts/tokenpage.jsx
View file @
7c19d384
...
...
@@ -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
;
...
...
app/javascripts/txform.jsx
View file @
7c19d384
...
...
@@ -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
);
...
...
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