Skip to content

Commit

Permalink
update formatsubscriptionResult type (#6369)
Browse files Browse the repository at this point in the history
* update formatsubscriptionResult

* update changelog
  • Loading branch information
Alex committed Aug 18, 2023
1 parent 86f0cdb commit 1cdc86c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/web3-eth/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,3 +180,7 @@ Documentation:
- A `signTypedData` method to the `Web3Eth` class (#6286)

## [Unreleased]

### Fixed

- Added return type for `formatSubscriptionResult` in class `NewHeadsSubscription` (#6368)
2 changes: 1 addition & 1 deletion packages/web3-eth/src/web3_subscriptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export class NewHeadsSubscription extends Web3Subscription<{
return ['newHeads'];
}

protected formatSubscriptionResult(data: BlockHeaderOutput) {
protected formatSubscriptionResult(data: BlockHeaderOutput): BlockHeaderOutput {
return format(blockHeaderSchema, data, super.returnFormat);
}
}
Expand Down

0 comments on commit 1cdc86c

Please sign in to comment.