native coin handling

This commit is contained in:
tim
2024-09-06 19:42:33 -04:00
parent 93dfb8bdcd
commit 84cadc6e6f
13 changed files with 460 additions and 265 deletions

View File

@@ -61,8 +61,7 @@ export function updateAccounts(chainId, provider) {
function changeAccounts(chainId, accounts) {
// this is a notification from the wallet that the user selected a different blockchain. that chain may or may not
// be supported. we store this value in walletStore.chainId, which may or may not be the same as
// the application's useStore().chainId
// be supported.
console.log('changeAccounts', chainId, accounts)
const store = useStore()
if (chainId === store.chainId && accounts.length) {