Skip to content

feat: add tests for opcode behavior #67

Description

@mds1

For precompiles, we verify their existence with a test case that includes input calldata and an expected response. We should do something similar for opcodes. A few examples of why this is valuable:

  • create/create2 are supported on most chains, but some have different behavior (i.e. deploying to different addresses, like zksync).
  • On L2s, many opcodes behave differently by e.g. returning constants. For examples, see optimism docs and arbitrum docs

Ethereum mainnet should be considered the source of truth for what opcodes are expected to return. When there are deviations in a behavior, the UI should indicate this (for example, color the cell yellow on the /features page)

If feasible, consider reporting on the gas usage as well to facilitate gas comparisons.

cc @fvictorio

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    data updateAdd or modify data fetched for chains

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions