cosmology-tech / cosmos-kit

Universal wallet connector for the Cosmos ⚛️
https://cosmology.zone/products/cosmos-kit
BSD 3-Clause Clear License
173 stars 129 forks source link

fix: `packages/core/src/manager.ts` - `addChains` function execution logic error fix. #471

Open willltns opened 1 month ago

willltns commented 1 month ago

After calling the walletManager's addChains method, due to the findIndex logic problem, newChainRecords traverse always overwrites the first item in this.chainRecords. The same problem in the code below, when a new walletRepo is pushed to this.walletRepos.

willltns commented 1 month ago

fix packages/core/src/manager.ts's bug, and implement the main functions of Mock Wallet.