From 73a717c2e9123b0a9851589d0c4b35fe35a142ea Mon Sep 17 00:00:00 2001 From: Xueying Wang Date: Fri, 7 Jul 2023 15:40:18 +0200 Subject: [PATCH] minor fix --- examples/watch-balances/main.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/watch-balances/main.ts b/examples/watch-balances/main.ts index a93c41c..a4877ee 100755 --- a/examples/watch-balances/main.ts +++ b/examples/watch-balances/main.ts @@ -17,6 +17,7 @@ */ import { WsProvider } from '@polkadot/api'; +import { AccountInfo } from '@polkadot/types/interfaces'; import { formatBalance } from '@polkadot/util'; import { @@ -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 }])) ); }