native coin handling
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user