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

itest: Add a FEVM itest for block properties. #10253

Closed
Stebalien opened this issue Feb 13, 2023 · 0 comments
Closed

itest: Add a FEVM itest for block properties. #10253

Stebalien opened this issue Feb 13, 2023 · 0 comments
Assignees
Labels
kind/test Kind: Test
Milestone

Comments

@Stebalien
Copy link
Member

We need an integration test in lotus for several block properties:

  • blockhash -- the digest from the tipset CID.
  • block.basefee
  • block.chainid (
    const Eip155ChainId = 314
    )
  • block.number (epoch)
  • block.timestamp (from the block header)

These can't be tested in the FVM itself as they depend on information from lotus (exposed through the FFI).

See https://docs.soliditylang.org/en/v0.8.18/units-and-global-variables.html#block-and-transaction-properties

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/test Kind: Test
Projects
No open projects
Status: Done
Development

No branches or pull requests

3 participants