Compare commits

..
+2 -6
View File
@@ -60,12 +60,7 @@ export const WalletEmbed = () => {
return;
}
sendMessage(
event.source as Window,
'WALLET_ACCOUNTS_DATA',
accountsData.map(account => account.address),
event.origin
);
sendMessage(event.source as Window, 'WALLET_ACCOUNTS_DATA', accountsData, event.origin);
};
window.addEventListener('message', handleGetAccounts);
@@ -93,6 +88,7 @@ export const WalletEmbed = () => {
throw new Error('Requested network not supported.');
}
console.log({ network, fromAddress, chainId, toAddress, amount });
const account = await retrieveSingleAccount(network.namespace, network.chainId, fromAddress);
if (!account) {
throw new Error('Account not found for the requested address.');