Skip to content

simulators/ethereum/graphql/testcases: change block number input to number instead of hexadecimal#445

Merged
holiman merged 4 commits intoethereum:masterfrom
renaynay:fix_blockByNumber_graphql
Feb 26, 2021
Merged

simulators/ethereum/graphql/testcases: change block number input to number instead of hexadecimal#445
holiman merged 4 commits intoethereum:masterfrom
renaynay:fix_blockByNumber_graphql

Conversation

@renaynay
Copy link
Copy Markdown
Contributor

@renaynay renaynay commented Feb 24, 2021

This PR changes the following test cases to use number instead of hexadecimal as the input parameter for block number:

  • 02_eth_call_Block8
  • 16_eth_getBlock_byNumber
  • 20_eth_getBlockTransactionCount_byNumber
  • 23_eth_getLogs_matchTopic
  • 28_eth_getTransaction_byBlockNumberAndIndex
  • 29_eth_getTransaction_byBlockNumberAndInvalidIndex

With this PR, geth no longer accepts strings for the block number parameter. Besu accepts both.

Additionally, I added an additional valid response for 17_eth_getBlock_byNumberInvalid, but it is still failing as there is a discrepancy in error reporting between Besu and Geth (discussed here) that will hopefully be solved soon.

@renaynay renaynay force-pushed the fix_blockByNumber_graphql branch from 1a4304f to 9f4d829 Compare February 25, 2021 13:02
@renaynay renaynay requested a review from fjl February 26, 2021 12:40
@holiman holiman merged commit 3a0b7c9 into ethereum:master Feb 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants