Skip to content

Commit

Permalink
fix type assertions to work with Sentry instrumentation
Browse files Browse the repository at this point in the history
  • Loading branch information
kenkunz committed Oct 18, 2023
1 parent b50f22c commit dc39a8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/wizard/redeem/success/+page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ export async function load() {
wizard.updateData({ transactionReceipt });
}

const events = getEvents(transactionReceipt.logs, <Abi>vaultABI, 'AssetWithdrawn', contracts.vault);
const events = getEvents(transactionReceipt.logs, vaultABI as Abi, 'AssetWithdrawn', contracts.vault);

const receivedAssets = await Promise.all(
events.map(({ args }) => getRedemption(<AssetWithdrawl>args, denominationToken, chainId))
events.map(({ args }) => getRedemption(args as AssetWithdrawl, denominationToken, chainId))
);

return { receivedAssets };
Expand Down

0 comments on commit dc39a8a

Please sign in to comment.