Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LuckySwap
interface
Commits
1283199d
Unverified
Commit
1283199d
authored
Jun 08, 2023
by
Jordan Frankfurt
Committed by
GitHub
Jun 08, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: remove mainnet from optional chains list (#6725)
* fix: remove mainnet from optional chains list * simplify imports
parent
c1fff5ea
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
WalletConnectV2.ts
src/connection/WalletConnectV2.ts
+3
-2
No files found.
src/connection/WalletConnectV2.ts
View file @
1283199d
import
{
sendAnalyticsEvent
}
from
'
@uniswap/analytics
'
import
{
WalletConnect
,
WalletConnectConstructorArgs
}
from
'
@web3-react/walletconnect-v2
'
import
{
SupportedChainId
}
from
'
constants/chains
'
import
{
L1_CHAIN_IDS
,
L2_CHAIN_IDS
,
SupportedChainId
}
from
'
constants/chains
'
import
{
Z_INDEX
}
from
'
theme/zIndex
'
import
{
RPC_URLS
}
from
'
../constants/networks
'
...
...
@@ -14,6 +14,7 @@ const RPC_URLS_WITHOUT_FALLBACKS = Object.entries(RPC_URLS).reduce(
}),
{}
)
const
optionalChains
=
[...
L1_CHAIN_IDS
,
...
L2_CHAIN_IDS
].
filter
((
x
)
=>
x
!==
SupportedChainId
.
MAINNET
)
export
class
WalletConnectV2Popup
extends
WalletConnect
{
ANALYTICS_EVENT
=
'
Wallet Connect QR Scan
'
...
...
@@ -27,7 +28,7 @@ export class WalletConnectV2Popup extends WalletConnect {
actions
,
options
:
{
projectId
:
process
.
env
.
REACT_APP_WALLET_CONNECT_PROJECT_ID
as
string
,
optionalChains
:
Object
.
keys
(
RPC_URLS_WITHOUT_FALLBACKS
).
map
((
key
)
=>
Number
(
key
))
,
optionalChains
,
chains
:
[
SupportedChainId
.
MAINNET
],
showQrModal
:
qrcode
,
rpcMap
:
RPC_URLS_WITHOUT_FALLBACKS
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment