Skip to content

Commit 9b58f1a

Browse files
committed
feat: demo default use Polygon
1 parent fd9a339 commit 9b58f1a

File tree

3 files changed

+5525
-1026
lines changed

3 files changed

+5525
-1026
lines changed

packages/demo/src/App.svelte

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,12 @@
216216
transactionPreview,
217217
gas,
218218
chains: [
219+
{
220+
id: '0x13881',
221+
token: 'MATIC',
222+
label: 'Polygon - Mumbai',
223+
rpcUrl: 'https://matic-mumbai.chainstacklabs.com '
224+
},
219225
{
220226
id: '0x1',
221227
token: 'ETH',
@@ -247,12 +253,6 @@
247253
label: 'Goerli',
248254
rpcUrl: `https://goerli.infura.io/v3/${infura_key}`
249255
},
250-
{
251-
id: '0x13881',
252-
token: 'MATIC',
253-
label: 'Polygon - Mumbai',
254-
rpcUrl: 'https://matic-mumbai.chainstacklabs.com '
255-
},
256256
{
257257
id: '0x38',
258258
token: 'BNB',
@@ -478,7 +478,7 @@
478478
let typedMsg = JSON.stringify(
479479
{
480480
domain: {
481-
chainId: '0x5',
481+
chainId: '0x13881',
482482
name: 'Web3-Onboard Test App',
483483
verifyingContract: '0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC',
484484
version: '1'
@@ -526,7 +526,7 @@
526526
2
527527
)
528528
const signTypedMessage = async (provider, address) => {
529-
await onboard.setChain({ chainId: '0x5' })
529+
await onboard.setChain({ chainId: '0x13881' })
530530
const signature = await provider.request({
531531
method: 'eth_signTypedData_v4',
532532
params: [address, typedMsg]

0 commit comments

Comments
 (0)