Update response for REQUEST_WALLET_ACCOUNTS message

This commit is contained in:
Nabarun 2025-03-25 16:49:52 +05:30
parent 5c0162fcb4
commit 67b97e6b11

View File

@ -60,7 +60,12 @@ export const WalletEmbed = () => {
return;
}
sendMessage(event.source as Window, 'WALLET_ACCOUNTS_DATA', accountsData, event.origin);
sendMessage(
event.source as Window,
'WALLET_ACCOUNTS_DATA',
accountsData.map(account => account.address),
event.origin
);
};
window.addEventListener('message', handleGetAccounts);