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
cdb87bed
Commit
cdb87bed
authored
Aug 09, 2016
by
Simon de la Rouviere
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Re-added vanity vars.
parent
87ec801e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
tokenpage.jsx
app/javascripts/tokenpage.jsx
+8
-10
No files found.
app/javascripts/tokenpage.jsx
View file @
cdb87bed
...
...
@@ -51,28 +51,26 @@ var TokenPage = React.createClass({
//optionals. So don't throw.
//only omit them
/*web3_token.decimals.call({from: addr}, function(err, decimals) {
//TODO: For now, this will break for any token that does NOT have decimals, name or symbol.
//One need to do a function signature regex to determine if it's in there or not.
web3_token
.
decimals
.
call
({
from
:
addr
},
function
(
err
,
decimals
)
{
//ABI will force it to expect BigNumber.
//because it throws via fallback function if not present, it gets back 0.
if
(
err
)
{
console
.
log
(
err
);
}
if
(
decimals
)
{
console
.
log
(
decimals
);
that
.
setState
({
token_decimals
:
decimals
});
}
});
console.log(web3_token);
try {
web3_token.symbol.call({from: addr}, function(err, symbol) {
web3_token
.
symbol
.
call
({
from
:
addr
},
function
(
err
,
symbol
)
{
//ABI expects string here,
if
(
err
)
{
console
.
log
(
"ERROR BRUV"
);
}
if
(
symbol
)
{
console
.
log
(
symbol
);
that
.
setState
({
token_symbol
:
symbol
});
}
});
} catch(err) {
console.log("symbol jarring");
}?
/*
});
web3_token
.
name
.
call
({
from
:
addr
},
function
(
err
,
name
)
{
if
(
err
)
{
console
.
log
(
err
);
}
if
(
name
)
{
console
.
log
(
name
);
that
.
setState
({
token_name
:
name
});
}
});
*/
});
},
successOnBalance
:
function
(
result
,
args
)
{
//call when balanceOf call succeeds.
...
...
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