Skip to content

Commit

Permalink
remove possible problem with popupblocker
Browse files Browse the repository at this point in the history
  • Loading branch information
SamueleA committed Jun 27, 2023
1 parent f809f09 commit de0e7d3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -913,8 +913,6 @@ And that has made all the difference.
const switchToChainId = async (targetChainId: number) => {
try {
resetConsole()
const chainIdBefore = await wallet.getChainId()
addNewConsoleLine(`Chain id before switching networks: ${chainIdBefore}`, { logMessage: true })

addNewConsoleLine(`Attempting to connect to chain #${targetChainId}`, { logMessage: true })
const provider = wallet.getProvider()!
Expand Down

0 comments on commit de0e7d3

Please sign in to comment.