Skip to content

Commit

Permalink
chore: remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
tomiir committed May 21, 2024
1 parent 893f88e commit d382790
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/scaffold/src/modal/w3m-modal/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,17 +164,13 @@ export class W3mModal extends LitElement {
}

private async onNewAddress(caipAddress?: CaipAddress) {
console.log('on new address loading', this.loading)
if (!this.connected || this.loading) {
return
}
console.log('prev caip address', this.caipAddress)
console.log('new caip address', caipAddress)
const hasNetworkChanged = this.caipAddress && this.caipAddress !== caipAddress
console.log('has network changed', hasNetworkChanged)

this.caipAddress = caipAddress
if (this.isSiweEnabled) {
// Case 2: Siwe session exists and network has changed
const { SIWEController } = await import('@web3modal/siwe')
const session = await SIWEController.getSession()

Expand Down

0 comments on commit d382790

Please sign in to comment.