Skip to content

Commit

Permalink
fix: displaying pure EIP-6963 wallets (#2777)
Browse files Browse the repository at this point in the history
  • Loading branch information
bulgakovk authored Oct 10, 2024
1 parent b2375a6 commit a4de9f8
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
23 changes: 23 additions & 0 deletions .changeset/lucky-apples-change.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
'@reown/appkit-adapter-polkadot': patch
'@reown/appkit-adapter-ethers5': patch
'@reown/appkit-adapter-ethers': patch
'@reown/appkit-adapter-solana': patch
'@reown/appkit-adapter-wagmi': patch
'@reown/appkit-utils': patch
'@reown/appkit-experimental': patch
'@reown/appkit-scaffold-ui': patch
'@reown/appkit-polyfills': patch
'@apps/laboratory': patch
'@reown/appkit': patch
'@reown/appkit-common': patch
'@reown/appkit-wallet': patch
'@reown/appkit-core': patch
'@reown/appkit-siwe': patch
'@apps/gallery': patch
'@reown/appkit-cdn': patch
'@reown/appkit-ui': patch
'@apps/demo': patch
---

Fix displaying pure EIP-6963 wallets.
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,16 @@ export class W3mConnectInjectedWidget extends LitElement {
return null
}
if (!ConnectionController.checkInstalled(undefined, connector.chain)) {
const walletRDNS = connector.info?.rdns
if (!walletRDNS && !ConnectionController.checkInstalled(undefined, connector.chain)) {
this.style.cssText = `display: none`
return null
}
if (connector.info?.rdns && ApiController.state.excludedRDNS) {
if (ApiController.state.excludedRDNS.includes(connector?.info?.rdns)) {
if (walletRDNS && ApiController.state.excludedRDNS) {
if (ApiController.state.excludedRDNS.includes(walletRDNS)) {
return null
}
}
Expand Down

0 comments on commit a4de9f8

Please sign in to comment.