Skip to content

Update eth-rpc tests#87

Merged
pgherveou merged 4 commits intomainfrom
pg/updates
Apr 30, 2025
Merged

Update eth-rpc tests#87
pgherveou merged 4 commits intomainfrom
pg/updates

Conversation

@pgherveou
Copy link
Collaborator

@pgherveou pgherveou commented Apr 3, 2025

  • Add basic tests for all supported rpc methods
  • Refactor contract deployments utilities
  • Set --no-file-parallelism as otherwise vitest will fire all deployment at once, and that will mess up the nonce count

Note:

Set --no-file-parallelism as otherwise vitest will fire all deployment
at once, and that will mess up the nonce count
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 5 out of 8 changed files in this pull request and generated 2 comments.

Files not reviewed (3)
  • eth-rpc/contracts/Flipper.sol: Language not supported
  • eth-rpc/contracts/Tester.sol: Language not supported
  • eth-rpc/package.json: Language not supported

@pgherveou pgherveou assigned pgherveou and unassigned pgherveou Apr 7, 2025
@pgherveou pgherveou requested a review from bee344 April 7, 2025 09:19
@marshacb
Copy link
Contributor

marshacb commented Apr 8, 2025

Hey PG - I gave the tests a run and theres one that seems to fail for me. Is it expected?

   × eth-rpc > eth_getStorageAt works 5ms
     → expected '0x' to deeply equal '0x16000000000000000000000000000000000…'

@pgherveou
Copy link
Collaborator Author

pgherveou commented Apr 8, 2025 via email

github-merge-queue bot pushed a commit to paritytech/polkadot-sdk that referenced this pull request Apr 22, 2025
Refactor eth-rpc
- Get rid of the in memory-cache, we can just store receipts logs into
sqlite, and use in-memory db for non archive node.
- Track both best and finalized blocks so that we can properly index
transaction receipts in case of a relay chain re-org.
- Keep reference to the latest finalized block so that we can use that
for queries that use the `finalized` block tag
- use `--index-last-n-blocks` cli parameter to re-index the last n block
when the server start
- Fix issue related to gas estimate calculation for EIP1559 transaction
types

tested changes with paritytech/evm-test-suite#87

fix paritytech/contract-issues#35
paritytech/contract-issues#33

---------

Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-merge-queue bot pushed a commit to paritytech/polkadot-sdk that referenced this pull request Apr 22, 2025
Refactor eth-rpc
- Get rid of the in memory-cache, we can just store receipts logs into
sqlite, and use in-memory db for non archive node.
- Track both best and finalized blocks so that we can properly index
transaction receipts in case of a relay chain re-org.
- Keep reference to the latest finalized block so that we can use that
for queries that use the `finalized` block tag
- use `--index-last-n-blocks` cli parameter to re-index the last n block
when the server start
- Fix issue related to gas estimate calculation for EIP1559 transaction
types

tested changes with paritytech/evm-test-suite#87

fix paritytech/contract-issues#35
paritytech/contract-issues#33

---------

Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Copy link
Collaborator

@bee344 bee344 left a comment

Choose a reason for hiding this comment

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

LGTM

@pgherveou pgherveou merged commit 6ffa857 into main Apr 30, 2025
1 check passed
castillax pushed a commit to paritytech/polkadot-sdk that referenced this pull request May 12, 2025
Refactor eth-rpc
- Get rid of the in memory-cache, we can just store receipts logs into
sqlite, and use in-memory db for non archive node.
- Track both best and finalized blocks so that we can properly index
transaction receipts in case of a relay chain re-org.
- Keep reference to the latest finalized block so that we can use that
for queries that use the `finalized` block tag
- use `--index-last-n-blocks` cli parameter to re-index the last n block
when the server start
- Fix issue related to gas estimate calculation for EIP1559 transaction
types

tested changes with paritytech/evm-test-suite#87

fix paritytech/contract-issues#35
paritytech/contract-issues#33

---------

Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

3 participants