From c1927d940ac533a90c4636799d34200f7604160b Mon Sep 17 00:00:00 2001 From: queenwuli <942534046@qq.com> Date: Fri, 25 Mar 2022 11:07:32 +0800 Subject: [PATCH] gx --- src/pages/index/index.vue | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index fd8b18a..2da5a48 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -117,8 +117,10 @@ const provider = new WalletConnectProvider({ infuraId: '27e484dcd9e3efcfd25a83a78777cdf1', rpc: { - 1: "https://mainnet.infura.io/v3/f54a5887a3894ebb9425920701a97fe0", + 66: "https://exchainrpc.okex.org", }, + chainId: 66, + networkId: 66, }); await provider.enable(); provider.on("accountsChanged", (accounts) => { @@ -250,6 +252,8 @@ await window.ethereum.enable(); const accounts = await ethereum.request({ method: 'eth_accounts' }); address = accounts[0]; + console.log('dapp环境噢') + console.log(accounts) }else if(window.tronWeb){ address = window.tronWeb.defaultAddress.base58; } -- Gitblit v1.9.1