Skip to content
Permalink
Browse files

send user address to get balance

  • Loading branch information...
elaineo committed Mar 20, 2017
1 parent 17a3ce9 commit cf0a8bc4fc5b835925c637529601927717f84c03
Showing with 3 additions and 3 deletions.
  1. +2 −2 public/views/token.html
  2. +1 −1 routes/token.js
@@ -6,9 +6,9 @@
<div class="col-md-6 center">
<div >
<span class="eth-stat-title">
{{ token.balance | number: 10 }} ETC</span><br>
{{ token.balance | number: 10 }} </span><br>
<span class="eth-stat-text">
{{ token.name }} Balance
{{ token.name }} Address Balance (ETC)
</span><br>
<div class="margin-top-20">
{{ token.total_supply | number:1 }} <span class="eth-stat-text">Total Tokens</span>
@@ -41,7 +41,7 @@ module.exports = function(req, res){
console.error(e);
}
} else if (req.body.action=="balanceOf") {
var addr = req.body.addr.toLowerCase();
var addr = req.body.user.toLowerCase();
try {
var tokens = Token.balanceOf(addr);
tokens = etherUnits.toEther(tokens, 'wei')*100;

0 comments on commit cf0a8bc

Please sign in to comment.
You can’t perform that action at this time.