Open BR1PERCENTERS opened 10 months ago
Where?
https://petra.app/docs/connect-to-petra
const wallet = getAptosWallet(); try { const response = await wallet.connect(); console.log(response); // { address: string, address: string } const account = await wallet.account(); console.log(account); // { address: string, address: string } } catch (error) { // { code: 4001, message: "User rejected the request."} }
What's wrong?
// { address: string, address: string }
What's correct?
// { address: string, publicKey: string }
Where?
https://petra.app/docs/connect-to-petra
What's wrong?
// { address: string, address: string }
What's correct?
// { address: string, publicKey: string }