walletconnect-monorepo icon indicating copy to clipboard operation
walletconnect-monorepo copied to clipboard

When using @walletconnect/client in react-native, an error occurs in approveSession

Open jwoo9928 opened this issue 2 years ago • 0 comments

When using @walletconnect/client in react-native, an error occurs in approveSession in react-native

let connector = new WalletConnecter( { // Required uri: 'wc:551cf846-6edf-42a8-bdc9-ea3b3ea11f4f@1?bridge=https%3A%2F%2F7.bridge.walletconnect.org&key=e812a0ea9c887a5f6360e6cd61f56c2f56392934063c9645c1a92b69aa9c9c89', // Required clientMeta: { description: "WalletConnect Developer App", url: "https://walletconnect.org", icons: ["https://walletconnect.org/walletconnect-logo.png"], name: "WalletConnect", }, } ); // await connector.createSession(); if(!connector.session.connected) { let selectedAddresses : Array<string> = await new Promise((resolve, reject) => { approvalRequest.current = { resolve, reject }; }); console.log("selectedAddresses",selectedAddresses); await connector.approveSession({ accounts:selectedAddresses, chainId: 1 }) console.log("connector.session.connected",connector.session.connected); }

스크린샷 2022-05-26 오전 11 55 31

jwoo9928 avatar May 26 '22 01:05 jwoo9928