anza-xyz / anza-xyz/wallet-standard
OKX Wallet Extension caused runtime error
- Lenguaje dominante
- TypeScript
- Estrellas
- 137
- Forks
- 65
- Merge medio
- 5 h 48 min
- PR fusionados (30 d)
- 2
Descripción
Steps to reproduce:
- Install [OKX Wallet Extension](https://chrome.google.com/webstore/detail/okx-wallet/mcohilncbfahbmgdjkbpemcciiolgcge)
- Run an app that uses Solana wallet adapter (you dont even have to open the OKX extension)
The error:
```
react-dom.development.js:22839 Uncaught TypeError: off is not a function
at StandardWalletAdapter.destroy (adapter.ts:125:13)
at useStandardWalletAdapters.ts:40:73
at Array.forEach ()
at useStandardWalletAdapters.ts:40:44
at safelyCallDestroy (react-dom.development.js:22932:5)
at commitHookEffectListUnmount (react-dom.development.js:23100:11)
at invokePassiveEffectUnmountInDEV (react-dom.development.js:25207:13)
at invokeEffectsInDev (react-dom.development.js:27351:11)
```
Its coming from this method:
```
destroy(): void {
this.#account = null;
this.#publicKey = null;
this.#connecting = false;
this.#disconnecting = false;
const off = this.#off;
if (off) {
this.#off = null;
off();
}
}
```
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.