How to get the Substrate accounts of an user using Talisman
const talismanExtension = window.injectedWeb3["talisman"];
const extension = await talismanExtension.enable();
let acc = await extension.accounts.get();
const sr25519Account = acc.find(
(account) => account.type === "sr25519"
);
const result = sr25519Account
? {
address: sr25519Account.address,
name: sr25519Account.name,
type: sr25519Account.type,
}
: null;