Skip to content

Commit

Permalink
Merge branch 'V3' into fix/networks-max-height
Browse files Browse the repository at this point in the history
  • Loading branch information
tomiir authored Jan 4, 2024
2 parents f2e27b2 + 5b6b17e commit d375e7d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
5 changes: 3 additions & 2 deletions packages/ui/src/composites/wui-list-accordion/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ export default css`
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(to top, rgb(42, 42, 42), transparent);
border-radius: var(--wui-border-radius-xs);
background: linear-gradient(to top, var(--wui-color-bg-200), transparent);
border-bottom-left-radius: var(--wui-border-radius-xs);
border-bottom-right-radius: var(--wui-border-radius-xs);
}
.heightContent {
Expand Down
12 changes: 9 additions & 3 deletions packages/wagmi/src/connectors/EIP6963Connector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,16 @@ export class EIP6963Connector extends InjectedConnector {
public override async isAuthorized(eip6963Wallet?: EIP6963Wallet) {
const connectedEIP6963Rdns = this.storage?.getItem(connectedRdnsKey)
if (connectedEIP6963Rdns) {
if (!eip6963Wallet || connectedEIP6963Rdns !== eip6963Wallet.info.rdns) {
return true
if (this.#eip6963Wallet && connectedEIP6963Rdns === this.#eip6963Wallet.info.rdns) {
const provider = this.#eip6963Wallet.provider
const accounts = await provider.request({ method: 'eth_accounts' })
if (accounts.length) {
return true
}
}
if (eip6963Wallet) {
this.#eip6963Wallet = eip6963Wallet
}
this.#eip6963Wallet = eip6963Wallet
}

return super.isAuthorized()
Expand Down

0 comments on commit d375e7d

Please sign in to comment.