File tree Expand file tree Collapse file tree 3 files changed +5525
-1026
lines changed Expand file tree Collapse file tree 3 files changed +5525
-1026
lines changed Original file line number Diff line number Diff line change 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' ,
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' ,
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'
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]
You can’t perform that action at this time.
0 commit comments