polkawallet-io / sdk

polkawallet SDK for integrating substrate-based blockchain as a plugin.
Apache License 2.0
18 stars 24 forks source link

+Fixed a bug affecting the population of indexInfo for local accounts… #7

Closed remzrn closed 3 years ago

remzrn commented 3 years ago

…. +Ensured the indexInfo is updated in synchrony with the indices map.

The indicesMap is indexed by addresses and not public keys in other parts of the code. This caused the update function to never populate the index info correctly for local accounts. The call to allAccounts after the update of the map ensures that formatAccounts is called for the list of local accounts, which populates the right information. This fix is necessary for the good behaviour of the pull request in UI, but should be useful by itself.

RomeroYang commented 3 years ago

Thanks for your work 👍