Add accountsChanged and chainChanged events for NEAR (#301)

This commit is contained in:
kujtimprenkuSQA 2023-10-09 15:32:31 +02:00 committed by GitHub
parent e88c5ef7c4
commit 48982a0fcc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -111,7 +111,7 @@ export default function SessionProposalModal() {
near: { near: {
chains: nearChains, chains: nearChains,
methods: nearMethods, methods: nearMethods,
events: [], events: ['accountsChanged', 'chainChanged'],
accounts: nearChains.map(chain => `${chain}:${nearAddresses[0]}`).flat() accounts: nearChains.map(chain => `${chain}:${nearAddresses[0]}`).flat()
}, },
polkadot: { polkadot: {