From dc39a8a8c4b41d0f028826d7ca45224dad6ba7ec Mon Sep 17 00:00:00 2001 From: Ken Kunz Date: Tue, 17 Oct 2023 19:49:02 -0500 Subject: [PATCH] fix type assertions to work with Sentry instrumentation --- src/routes/wizard/redeem/success/+page.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/wizard/redeem/success/+page.ts b/src/routes/wizard/redeem/success/+page.ts index 3512c9669..44d344559 100644 --- a/src/routes/wizard/redeem/success/+page.ts +++ b/src/routes/wizard/redeem/success/+page.ts @@ -16,10 +16,10 @@ export async function load() { wizard.updateData({ transactionReceipt }); } - const events = getEvents(transactionReceipt.logs, vaultABI, 'AssetWithdrawn', contracts.vault); + const events = getEvents(transactionReceipt.logs, vaultABI as Abi, 'AssetWithdrawn', contracts.vault); const receivedAssets = await Promise.all( - events.map(({ args }) => getRedemption(args, denominationToken, chainId)) + events.map(({ args }) => getRedemption(args as AssetWithdrawl, denominationToken, chainId)) ); return { receivedAssets };