Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1f9842f1d5 | ||
|
|
5c0162fcb4 | ||
|
|
24bae4d811 | ||
|
|
86b9e379c9 |
@@ -60,12 +60,7 @@ export const WalletEmbed = () => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
sendMessage(
|
sendMessage(event.source as Window, 'WALLET_ACCOUNTS_DATA', accountsData, event.origin);
|
||||||
event.source as Window,
|
|
||||||
'WALLET_ACCOUNTS_DATA',
|
|
||||||
accountsData.map(account => account.address),
|
|
||||||
event.origin
|
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
window.addEventListener('message', handleGetAccounts);
|
window.addEventListener('message', handleGetAccounts);
|
||||||
@@ -93,6 +88,7 @@ export const WalletEmbed = () => {
|
|||||||
throw new Error('Requested network not supported.');
|
throw new Error('Requested network not supported.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log({ network, fromAddress, chainId, toAddress, amount });
|
||||||
const account = await retrieveSingleAccount(network.namespace, network.chainId, fromAddress);
|
const account = await retrieveSingleAccount(network.namespace, network.chainId, fromAddress);
|
||||||
if (!account) {
|
if (!account) {
|
||||||
throw new Error('Account not found for the requested address.');
|
throw new Error('Account not found for the requested address.');
|
||||||
|
|||||||
Reference in New Issue
Block a user