Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client: fix more hive RPC-Compat tests #3503

Merged
merged 3 commits into from
Jul 15, 2024
Merged

Conversation

jochem-brouwer
Copy link
Member

@jochem-brouwer jochem-brouwer commented Jul 14, 2024

To run, setup local hive with EthereumJS

  1. Ensure in hive, clients/ethereumjs has a cloned ethereumjs-monorepo
  2. Ensure that in clients, you rename Dockerfile.local to Dockerfile
  3. To run: ./hive --sim ethereum/rpc --client ethereumjs --sim.limit rpc-compat

Before: 16/90 failed, after: 13/90 failed

Side note: in order to run EthereumJS in hive with TS-node from the source, change ethereumjs-local.sh:

ethereumjs="node /ethereumjs-monorepo/packages/client/dist/esm/bin/cli.js"

To

ethereumjs="tsx /ethereumjs-monorepo/packages/client/bin/cli.ts"

And ensure that in Dockerfile (the renamed Dockerfile.local) you install tsx:

RUN npm i -g ts-node
RUN npm i -g tsx

Failing tests overview

  • eth_call/call-callenv - the test expects us to return 0 on the BASEFEE opcode it seems, but this does not seem correct to me
  • eth_call/call-contract - tests calls into a contract which loads the CALLDATASIZE, and if its nonzero it reverts (it seems to push some string on the stack). The test however expects us to return a completely different value (and I do not understand why)

I investigated the other tests but it is not clear why those fail to me (or they are simply too complex to implement, for instance decode the ABI revert data into human readable strings)

@jochem-brouwer jochem-brouwer marked this pull request as ready for review July 14, 2024 13:45
Copy link
Member

@holgerd77 holgerd77 left a comment

Choose a reason for hiding this comment

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

Nice, LGTM

@holgerd77 holgerd77 merged commit 303b045 into master Jul 15, 2024
33 of 34 checks passed
@holgerd77 holgerd77 deleted the fix-rpc-compact-hive-tests branch July 15, 2024 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants