Closed m-Peter closed 4 weeks ago
The changes introduce two new fields, Sha3Uncles
and StateRoot
, to the response structure of the prepareBlockResponse
method in the BlockChainAPI
class. These fields provide additional blockchain state information, enhancing the data returned to clients. Additionally, the test suite has been updated with new assertions to validate these fields, ensuring the correctness of the block data. A new integration test has also been added to validate Ethereum client interactions.
Files | Change Summary |
---|---|
api/api.go |
Added Sha3Uncles and StateRoot fields to the return structure of prepareBlockResponse . |
tests/web3js/eth_non_interactive_test.js |
Added assertions to verify block.sha3Uncles and block.stateRoot values in the test case. |
tests/integration_test.go |
Introduced a new test function Test_EthClientTest to validate Ethereum client interactions. |
Objective | Addressed | Explanation |
---|---|---|
sha3Uncles does not return proper value for 0 uncles (#503) |
✅ |
🐰 In the blockchain's dance, we hop with glee,
New fields added, oh what a spree!
Sha3Uncles and StateRoot, a delightful sight,
Validations now shine, making things right.
With every block, our joy does grow,
Hopping through code, watch us flow! 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Closes: https://github.com/onflow/flow-evm-gateway/issues/503
Description
The empty hash value for this field can be found here: EmptyUncleHash
For contributor use:
master
branchFiles changed
in the Github PR explorerSummary by CodeRabbit
New Features
Sha3Uncles
andStateRoot
, providing more comprehensive blockchain state information.Tests
sha3Uncles
andstateRoot
fields in block retrieval tests.