Copy & Paste Error in Docs
Opened this issue · 0 comments
BR1PERCENTERS commented
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 }