Skip to content

Commit

Permalink
Update Wallet Connect V2 for vite example (#1802)
Browse files Browse the repository at this point in the history
* support wallet connect v2

* Update examples/with-vite-react/src/web3-onboard.ts

---------

Co-authored-by: Adam Carpenter <adamcarpenter86@gmail.com>
  • Loading branch information
0xleeaki and Adamj1232 committed Jul 10, 2023
1 parent 7cc952f commit 4e8f66c
Show file tree
Hide file tree
Showing 3 changed files with 166 additions and 161 deletions.
4 changes: 3 additions & 1 deletion examples/with-vite-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@
"@web3-onboard/ledger": "^2.4.3",
"@web3-onboard/magic": "^2.1.4",
"@web3-onboard/mew": "^2.1.3",
"@web3-onboard/mew-wallet": "^2.0.4",
"@web3-onboard/portis": "^2.1.4",
"@web3-onboard/react": "^2.8.0",
"@web3-onboard/sequence": "^2.0.5",
"@web3-onboard/taho": "^2.0.5",
"@web3-onboard/tallyho": "^2.0.1",
"@web3-onboard/torus": "^2.2.2",
"@web3-onboard/trezor": "^2.4.0",
"@web3-onboard/walletconnect": "^2.3.6",
"@web3-onboard/walletconnect": "^2.4.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
9 changes: 8 additions & 1 deletion examples/with-vite-react/src/web3-onboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,14 @@ const injected = injectedModule({

const walletLink = coinbaseModule()

const walletConnect = walletConnectModule()
const walletConnect = walletConnectModule(
{
version: 2,
// Replace with your apiKey
projectId: '4a49c32131502e8c12d54295295e2012',
dappUrl: 'https://onboard.blocknative.com/'
}
)
const portis = portisModule({
// Replace with your apiKey
apiKey: 'b2b7586f-2b1e-4c30-a7fb-c2d1533b153b'
Expand Down
Loading

0 comments on commit 4e8f66c

Please sign in to comment.