mirror of
https://github.com/pezkuwichain/pezkuwi-telegram-miniapp.git
synced 2026-06-20 19:41:05 +00:00
52b6344614
The Asset Hub / People Chain HEZ balances were fetched on [address, rpcConnected] + a 30s poll, so they didn't react to the Asset Hub/People connection becoming ready — People HEZ could sit at '--' until a later trigger (e.g. a transaction). Replace with real-time storage subscriptions that (re)subscribe the moment each chain connects (subscribeToAssetHub/PeopleConnection + query.system.account(addr, cb)). Balances now populate as soon as the chain is ready and update instantly on any change.