refactor(connector-quorum): make Web3BlockHeader.receiptRoot optional #2555
Labels
Breaking_V2
Changes that can only be made with the release of v3.0.0 due to them being breaking changes.
bug
Something isn't working
Developer_Experience
P1
Priority 1: Highest
Quorum
THIS IS A BREAKING CHANGE
Our own OpenAPI spec types and the Web3 library's own types have diverged because
they made a breaking change between v1.5.2 and v1.6.1 (haven't checked where exactly).
We need to sync up with their typings but we cannot do that unless we make a breaking
API change on our side as well so this should be done as part of the v2.0.0
release.
Relevant spec file:
packages/cactus-plugin-ledger-connector-besu/src/main/json/openapi.json
Relevant source code file:
packages/cactus-plugin-ledger-connector-besu/src/main/typescript/web-services/watch-blocks-v1-endpoint.ts
// Cast needed because somewhere between Web3 v1.5.2 and v1.6.1 they
// made the receiptRoot property of the BlockHeader type optional.
// This could be accopmanied by a breaking change in their code or
// it could've been just a mistake in their typings that they corrected.
// Either way, with the next major release, we need to make it optional
// in our API specs as well so that they match up.
The text was updated successfully, but these errors were encountered: