Skip to content

Commit

Permalink
feeat: remove console
Browse files Browse the repository at this point in the history
  • Loading branch information
arein committed Jan 3, 2024
1 parent 60f67bc commit 6986d07
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
11 changes: 0 additions & 11 deletions packages/scaffold/src/views/w3m-email-verify-otp-view/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,25 +106,14 @@ export class W3mEmailVerifyOtpView extends LitElement {
const otp = event.detail
if (this.emailConnector && otp.length === OTP_LENGTH) {
this.loading = true
console.log('w3m-email-verify-otp-view: Connecting with OTP', otp)
await this.emailConnector.provider.connectOtp({ otp })
console.log('w3m-email-verify-otp-view: Connected with OTP', otp)
// const bazooka = setTimeout(() => {
// console.log('closing modal')
// ModalController.close()
// console.log('closed modal')
// }, 5000)

await ConnectionController.connectExternal(this.emailConnector)
console.log('closing modal')
ModalController.close()
console.log('sending event')
EventsController.sendEvent({
type: 'track',
event: 'CONNECT_SUCCESS',
properties: { method: 'email' }
})
// clearTimeout(bazooka)
}
}
} catch (error) {
Expand Down
2 changes: 0 additions & 2 deletions packages/wagmi/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,7 @@ export class Web3Modal extends Web3ModalScaffold {
// @ts-expect-error Exists on EIP6963Connector
connector.setEip6963Wallet?.({ provider, info })
}
console.log('connectionControllerClient:connectExternal - connecting', connector)
const chainId = HelpersUtil.caipNetworkIdToNumber(this.getCaipNetwork()?.id)
console.log('connectionControllerClient:connectExternal - chainId', chainId)

await connect({ connector, chainId })
},
Expand Down

0 comments on commit 6986d07

Please sign in to comment.