File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -492,8 +492,10 @@ module.exports = function (apiKey, chain) {
492
492
* @param {string } contractaddress - Contract address
493
493
* @example
494
494
* var supply = api.account.tokenbalance(
495
- * '0x0a869d79a7052c7f1b55a8ebabbea3420f0d1e13',
496
- * 'TheDAO');
495
+ * '0x4366ddc115d8cf213c564da36e64c8ebaa30cdbd',
496
+ * 'DGD',
497
+ * ''
498
+ * );
497
499
* @returns {Promise.<object> }
498
500
*/
499
501
tokenbalance ( address , tokenname , contractaddress ) {
@@ -517,7 +519,7 @@ module.exports = function (apiKey, chain) {
517
519
if ( address ) {
518
520
queryObject . address = address ;
519
521
}
520
-
522
+
521
523
var query = querystring . stringify ( queryObject ) ;
522
524
return getRequest ( query ) ;
523
525
} ,
Original file line number Diff line number Diff line change @@ -17,10 +17,10 @@ describe('api', function() {
17
17
var api = init ( ) ;
18
18
19
19
var supply = api . account . tokenbalance (
20
- '0x0a869d79a7052c7f1b55a8ebabbea3420f0d1e13 ' ,
21
- 'TheDAO ' ) ;
20
+ '0x4366ddc115d8cf213c564da36e64c8ebaa30cdbd ' ,
21
+ 'DGD ' ) ;
22
22
supply . then ( function ( res ) {
23
- assert . ok ( res ) ;
23
+ assert . ok ( res . result ) ;
24
24
done ( ) ;
25
25
} ) ;
26
26
} ) ;
You can’t perform that action at this time.
0 commit comments