-
Notifications
You must be signed in to change notification settings - Fork 48
Description
Description:
ETH tokens - I tested only with LINK currency, but it seems to be a problem for all ETH tokens - are not synced first time after creating System after Account restore. After creating system I added LINK wallet, but it didn't sync, I know I have non-zero balance from before, but it shows 0 balance.
After debugging I found out that LINK wallet is automatically added to the system if there is non-zero balance. But after restore, System has available only currencies bundled with SDK, so in this case wallet is not added, since SDK has no currency definition. If I try to add wallet for ETH token later after currencies are already fetched from remote, it doesn't help, wallet is still not synced. I have to note, that this bug was not reproducible on Google Pixel 5, And 12, so it might be more prominent on slower/older devices.
If user creates system again (after currencies are fetched and cached) then it is synced correctly and shows non-zero balance.
Environment:
- Samsung S7, Android 8 (not reproducible on Google Pixel 5, And 12).
- Reproducible in WalletKit demo apps, https://github.com/blockset-corp/walletkit/tree/walletkit-0.10.4
- Mainnet
Reproduction steps:
- Restore
Accountthat has some balance on LINK or other ETH token currency. - Show LINK wallet if not already shown.
Expected result:
Non-zero balance on LINK currency.
Actual result:
Zero balance with wallet in CONNECTED state.