Commit 6af2955d by ken

balance

parent 48ce5317
......@@ -59,8 +59,9 @@ const _subscribe = function(callback, opened_callback = false) {
function subscribe() {
_subscribe((data) => {
if (data.channel === accountInfoChannel) {
console.log(data);
if (data.channel === accountInfoChannel) {
const coins = data.data.coins;
const balances = {};
for (const coin of coins) {
......
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