We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fbe249 commit 6e2ea6eCopy full SHA for 6e2ea6e
example/basic-dapp/index.js
@@ -547,6 +547,11 @@ async function walletInitialized() {
547
provider.request({ method: 'cfx_netVersion' }),
548
provider.request({
549
method: 'cfx_accounts',
550
+ params: [
551
+ {
552
+ availableNetwork: [1, 1029],
553
+ },
554
+ ],
555
}),
556
])
557
@@ -599,6 +604,11 @@ async function walletInitialized() {
599
604
try {
600
605
const [connectedAddress] = await provider.request({
601
606
607
608
609
+ availableNetwork: [1],
610
611
602
612
})
603
613
const tx = {
614
from: connectedAddress,
0 commit comments