Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
XY-Wang committed Jul 7, 2023
1 parent 255ce19 commit 73a717c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/watch-balances/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*/

import { WsProvider } from '@polkadot/api';
import { AccountInfo } from '@polkadot/types/interfaces';
import { formatBalance } from '@polkadot/util';

import {
Expand Down Expand Up @@ -65,10 +66,10 @@ function trackIO(address: string) {
bufferCount(2,1),
map(([x, y]) => ([{
address,
balance: x.data
balance: (x as AccountInfo).data
},{
address,
balance: y.data
balance: (y as AccountInfo).data
}]))
);
}
Expand Down

0 comments on commit 73a717c

Please sign in to comment.