Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Conversation

@nazarhussain
Copy link
Contributor

Description

Fixes #5319

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • I have selected the correct base branch.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • My changes generate no new warnings.
  • Any dependent changes have been merged and published in downstream modules.
  • I ran npm run dtslint with success and extended the tests and types if necessary.
  • I ran npm run test:cov and my test cases cover all the lines and branches of the added code.
  • I ran npm run build with success.
  • I have tested the built dist/web3.min.js in a browser.
  • I have tested my code on the live network.
  • I have checked the Deploy Preview and it looks correct.
  • I have updated the CHANGELOG.md file in the root folder.

@render
Copy link

render bot commented Aug 7, 2022

@nazarhussain nazarhussain linked an issue Aug 7, 2022 that may be closed by this pull request
1 task
response: JsonRpcResponse<ResultType, ErrorType>,
{ legacy, error }: { legacy: boolean; error: boolean },
): JsonRpcResponse<ResultType> | never {
if (isNullish(response)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you share rpc request and eth node you used for this case?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was tested for eth_getTransactionReceipt with ganache for a transaction hash which is not part of the block yet.

https://github.com/ethereum/execution-apis/blob/main/src/eth/transaction.yaml#L42

@nazarhussain nazarhussain merged commit a26823f into 4.x Aug 8, 2022
@nazarhussain nazarhussain deleted the nh/5319-handling-null-response branch August 8, 2022 11:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

4.x 4.0 related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Handling of the "null" response from provider

4 participants