Skip to content

Commit

Permalink
test querying address and public key
Browse files Browse the repository at this point in the history
  • Loading branch information
emccorson committed Oct 31, 2023
1 parent c267c06 commit 822cb64
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,14 @@ export const AccountOverview = (): JSX.Element => {
withConnection(
async () => {
const accounts = await integration?.accounts();

if (accounts?.[0]) {
const { publicKey, address } = accounts[0];

console.log(publicKey);
console.log(address);
}

if (accounts) {
dispatch(addAccounts(accounts as Account[]));
dispatch(fetchBalances());
Expand Down

0 comments on commit 822cb64

Please sign in to comment.