Skip to content

Commit

Permalink
Merge branch 'V4' into feat/replace-lerna-with-changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
svenvoskamp authored Feb 6, 2024
2 parents c2a21c0 + 37b1de1 commit 5befd58
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
4 changes: 4 additions & 0 deletions packages/ethers/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -818,6 +818,10 @@ export class Web3Modal extends Web3ModalScaffold {
await this.syncBalance(address)
}
}
} else if (isConnected) {
this.setCaipNetwork({
id: `${ConstantsUtil.EIP155}:${chainId}`
})
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions packages/ethers5/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -751,6 +751,10 @@ export class Web3Modal extends Web3ModalScaffold {
await this.syncBalance(address)
}
}
} else if (isConnected) {
this.setCaipNetwork({
id: `${ConstantsUtil.EIP155}:${chainId}`
})
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class WuiListWalletTransaction extends LitElement {
<wui-chip
icon="externalLink"
variant="shadeSmall"
@click=${this.onExplorer.bind(this)}
href=${this.addressExplorerUrl}
title=${this.receiverAddress}
></wui-chip>
</wui-flex>
Expand All @@ -56,12 +56,6 @@ export class WuiListWalletTransaction extends LitElement {

return html`<wui-icon size="inherit" color="fg-200" name="networkPlaceholder"></wui-icon>`
}

private onExplorer() {
if (this.addressExplorerUrl) {
window.open(this.addressExplorerUrl, '_blank', 'noreferrer noopener')
}
}
}

declare global {
Expand Down

0 comments on commit 5befd58

Please sign in to comment.