Skip to content

Commit

Permalink
fix: make block number optional
Browse files Browse the repository at this point in the history
  • Loading branch information
nvtaveras committed Jul 26, 2024
1 parent d790b9a commit df37ebf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/parse-transaction-receipts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}[] {
Expand Down Expand Up @@ -61,7 +61,6 @@ export default function parseTransactionReceipts(

if (isProposalCreatedEvent(event)) {
result.push({
block: Number(receipt.blockNumber),
event,
txHash: log.transactionHash,
});
Expand Down

0 comments on commit df37ebf

Please sign in to comment.