Update data structure in WALLET_ACCOUNTS_DATA iframe message (#57)

Part of [Service provider auctions for web deployments](https://www.notion.so/Service-provider-auctions-for-web-deployments-104a6b22d47280dbad51d28aa3a91d75)

Reviewed-on: cerc-io/snowballtools-base#57
Co-authored-by: Nabarun <nabarun@deepstacksoft.com>
Co-committed-by: Nabarun <nabarun@deepstacksoft.com>
This commit is contained in:
Nabarun 2025-03-25 09:59:37 +00:00 committed by nabarun
parent 05dd75a38c
commit cda6ebec30
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ const ApproveTransactionModal = ({
return;
}
setAccount(event.data.data[0].address);
setAccount(event.data.data[0]);
}
if (event.data.type === 'ERROR') {

View File

@ -92,7 +92,7 @@ const AutoSignInIFrameModal = () => {
if (event.origin !== VITE_WALLET_IFRAME_URL) return;
if (event.data.type === 'WALLET_ACCOUNTS_DATA') {
setAccountAddress(event.data.data[0].address);
setAccountAddress(event.data.data[0]);
}
};