From df37ebf71f239477ce22e2be56b8f30714307e69 Mon Sep 17 00:00:00 2001 From: Nelson Taveras <4562733+nvtaveras@users.noreply.github.com> Date: Fri, 26 Jul 2024 10:42:25 -0400 Subject: [PATCH] fix: make block number optional --- src/parse-transaction-receipts.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/parse-transaction-receipts.ts b/src/parse-transaction-receipts.ts index c9e32b0..57125fa 100644 --- a/src/parse-transaction-receipts.ts +++ b/src/parse-transaction-receipts.ts @@ -16,7 +16,7 @@ import SortedOraclesABI from "./sorted-oracles-abi.js"; export default function parseTransactionReceipts( matchedTransactionReceipts: unknown, ): { - block: number; + block?: number; event: ProposalCreatedEvent | HealthCheckEvent; txHash: string; }[] { @@ -61,7 +61,6 @@ export default function parseTransactionReceipts( if (isProposalCreatedEvent(event)) { result.push({ - block: Number(receipt.blockNumber), event, txHash: log.transactionHash, });