Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
fix(tests): force unwrap the interaction id in the test
Browse files Browse the repository at this point in the history
  • Loading branch information
dtfiedler committed Nov 27, 2023
1 parent 1123dcf commit 4cd7832
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/integration/routes.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ describe('Integration tests', () => {
},
);
expect(writeInteraction?.originalTxId).to.not.be.undefined;
transferToAddress = address;
const interactionBlock = await arweave.blocks.getCurrent();
contractInteractions.push({
height: interactionBlock.height,
Expand All @@ -90,7 +89,7 @@ describe('Integration tests', () => {
timestamp: Math.floor(interactionBlock.timestamp / 1000),
sortKey: await interactionSorter.createSortKey(
interactionBlock.hash,
writeInteraction?.originalTxId,
writeInteraction!.originalTxId,
interactionBlock.height,
),
valid: true,
Expand Down

0 comments on commit 4cd7832

Please sign in to comment.