Skip to content

Commit

Permalink
Update toBlockResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
bz888 committed Nov 8, 2023
1 parent 3b1055d commit bac8d45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/node/src/indexer/worker/worker.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class WorkerService extends BaseWorkerService<

protected toBlockResponse(block: BlockContent): FetchBlockResponse {
return {
parentHash: block.block.header.lastBlockId.hash.toString(),
parentHash: block.block.header.lastBlockId?.hash.toString(),
};
}

Expand Down

0 comments on commit bac8d45

Please sign in to comment.