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
b964953d
Unverified
Commit
b964953d
authored
Mar 31, 2021
by
Moody Salem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(walletconnect): use a dedicated walletconnect bridge
parent
649fd9c8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
.env
.env
+2
-1
index.ts
src/connectors/index.ts
+2
-1
No files found.
.env
View file @
b964953d
REACT_APP_CHAIN_ID="1"
REACT_APP_NETWORK_URL="https://mainnet.infura.io/v3/4bf032f2d38a4ed6bb975b80d6340847"
\ No newline at end of file
REACT_APP_NETWORK_URL="https://mainnet.infura.io/v3/4bf032f2d38a4ed6bb975b80d6340847"
REACT_APP_WALLETCONNECT_BRIDGE_URL="https://uniswap.bridge.walletconnect.org"
\ No newline at end of file
src/connectors/index.ts
View file @
b964953d
...
...
@@ -11,6 +11,7 @@ import UNISWAP_LOGO_URL from '../assets/svg/logo.svg'
const
NETWORK_URL
=
process
.
env
.
REACT_APP_NETWORK_URL
const
FORMATIC_KEY
=
process
.
env
.
REACT_APP_FORTMATIC_KEY
const
PORTIS_ID
=
process
.
env
.
REACT_APP_PORTIS_ID
const
WALLETCONNECT_BRIDGE_URL
=
process
.
env
.
REACT_APP_WALLETCONNECT_BRIDGE_URL
export
const
NETWORK_CHAIN_ID
:
number
=
parseInt
(
process
.
env
.
REACT_APP_CHAIN_ID
??
'
1
'
)
...
...
@@ -34,7 +35,7 @@ export const injected = new InjectedConnector({
// mainnet only
export
const
walletconnect
=
new
WalletConnectConnector
({
rpc
:
{
1
:
NETWORK_URL
},
bridge
:
'
https://bridge.walletconnect.org
'
,
bridge
:
WALLETCONNECT_BRIDGE_URL
,
qrcode
:
true
,
pollingInterval
:
15000
})
...
...
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