Skip to content

Commit

Permalink
Merge pull request #2 from niftykit-inc/walletconnect-polygon
Browse files Browse the repository at this point in the history
Adds support for polygon with walletconnect
  • Loading branch information
jcurbelo authored Feb 22, 2022
2 parents 38a685d + 3e95c19 commit bee6dab
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"dependencies": {
"@stencil/core": "^2.13.0",
"@walletconnect/web3-provider": "^1.7.1",
"dropkit.js": "0.0.11-rc5",
"dropkit.js": "0.0.12",
"walletlink": "^2.4.7"
},
"devDependencies": {
Expand Down
4 changes: 4 additions & 0 deletions src/components/nk-dropkit/nk-dropkit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ export class NkDropkit {
package: WalletConnectProvider,
options: {
infuraId,
rpc: {
80001: 'https://matic-mumbai.chainstacklabs.com',
137: 'https://polygon-rpc.com'
},
},
},
};
Expand Down
4 changes: 3 additions & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
</head>

<body>
<nk-dropkit apikey="pu16DaU0xXCaHnH5Vj3G" dev=true multiple=true></nk-dropkit>
<nk-dropkit id="testnet" apikey="pu16DaU0xXCaHnH5Vj3G" dev=true multiple=true>Mumbai TestNet</nk-dropkit>

<nk-dropkit id="mainnet" apikey="AHN5MP6tExXVkvNlRaCR">Mainnet</nk-dropkit>
</body>

</html>

0 comments on commit bee6dab

Please sign in to comment.