Skip to content

Commit

Permalink
Update networkId check
Browse files Browse the repository at this point in the history
  • Loading branch information
bobcoin98 committed Jan 11, 2024
1 parent b6bff94 commit 5082129
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/walletAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default {
method: 'net_version'
})
try {
if (parseInt(supportedWalletOption[0].chainId, 10) !== parseInt(chainId, 10)) {
if (parseInt(supportedWalletOption[0].chainId) !== parseInt(chainId)) {
await provider.request({
method: 'wallet_addEthereumChain',
params: supportedWalletOption
Expand Down Expand Up @@ -87,7 +87,7 @@ export default {
method: 'net_version'
})
try {
if (parseInt(supportedWalletOption[0].chainId, 10) !== parseInt(chainId, 10)) {
if (parseInt(supportedWalletOption[0].chainId) !== parseInt(chainId)) {
await provider.request({
method: 'wallet_addEthereumChain',
params: supportedWalletOption
Expand Down Expand Up @@ -122,7 +122,7 @@ export default {
method: 'net_version'
})
try {
if (parseInt(supportedWalletOption[0].chainId, 10) !== parseInt(chainId, 10)) {
if (parseInt(supportedWalletOption[0].chainId) !== parseInt(chainId)) {
await provider.request({
method: 'wallet_addEthereumChain',
params: supportedWalletOption
Expand Down

0 comments on commit 5082129

Please sign in to comment.