Skip to content

Commit

Permalink
fix: fix for network change event
Browse files Browse the repository at this point in the history
  • Loading branch information
nicov-iov committed May 24, 2024
1 parent ed3b081 commit 11a6de1
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/jsonRpcProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,7 @@ export const rskNetworks = {
}
}

export const jsonRpcProvider = new ethers.providers.JsonRpcProvider(
rpcServiceApiUrl,
{
name: rskNetworks[envNetwork].chainName,
chainId: parseInt(rskNetworks[envNetwork].chainId)
}
)
export const jsonRpcProvider = new ethers.providers.JsonRpcProvider(rpcServiceApiUrl, 'any')

export const getBrowserProvider = () => new ethers.providers.Web3Provider(window.ethereum)

Expand Down

0 comments on commit 11a6de1

Please sign in to comment.