cosmology-tech / cosmos-kit

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

unable to connect to station if not first wallet #394

Closed nick134-bit closed 5 months ago

nick134-bit commented 7 months ago

Im unable to connect to station-extension because some states are not correctly updated. You should be able to recreate with the create-cosmos-app connect-multi-chain template. Paste to _app.tsx

let testerWallets:Array<any> = wallets
const station = wallets.find((wallet:any) => wallet?.walletName == 'station-extension'
testerWallets.splice(testerWallets.indexOf(station!), 1)
testerWallets.unshift(station)
  1. Try with imported "wallets" in _app.tsx first -> station does not connect (wallet state of useChain does not change, local storage changes)
  2. try "testerWallets" -> station connects
nick134-bit commented 7 months ago

connected to this: https://github.com/cosmology-tech/cosmos-kit/pull/385 depends on which wallet is available

nick134-bit commented 5 months ago

created a workaround, not sure if still bugged