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

Symbolic block number is now allowed in library mode #692

Merged
merged 4 commits into from
Apr 8, 2025

Conversation

msooseth
Copy link
Collaborator

@msooseth msooseth commented Mar 27, 2025

Description

This change only affects library mode. In this mode, we now allow the block number to be symbolic. This is helpful for Echidna. It's a very minor change, and should not affect any use-case beyond being used as a library.

Built on top of #691 . Needs #691 to be merged before it makes any sense.

Checklist

  • tested locally
  • added automated tests
  • updated the docs
  • updated the changelog

Making progress

Updating readme

Fixing up tests

Update changelog
@msooseth msooseth marked this pull request as ready for review April 7, 2025 10:05
@msooseth msooseth requested review from blishko and Copilot April 7, 2025 10:05
Copy link

@Copilot 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 2 out of 12 changed files in this pull request and generated 1 comment.

Files not reviewed (10)
  • cli/cli.hs: Language not supported
  • src/EVM.hs: Language not supported
  • src/EVM/Exec.hs: Language not supported
  • src/EVM/Fetch.hs: Language not supported
  • src/EVM/SymExec.hs: Language not supported
  • src/EVM/Types.hs: Language not supported
  • src/EVM/UnitTest.hs: Language not supported
  • test/EVM/Test/BlockchainTests.hs: Language not supported
  • test/EVM/Test/Tracing.hs: Language not supported
  • test/rpc.hs: Language not supported

Copy link
Collaborator

@blishko blishko left a comment

Choose a reason for hiding this comment

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

I don't really understand much, but it seems OK :)

@blishko
Copy link
Collaborator

blishko commented Apr 8, 2025

My review is not much better than Copilot's 😅

@msooseth
Copy link
Collaborator Author

msooseth commented Apr 8, 2025

Hahah, no, I think yours is actually helpful, indicates I need to do better. So I decided to add a test case, thanks to @gustavo-grieco who contributed it. Let me add it and then merge :)

@msooseth
Copy link
Collaborator Author

msooseth commented Apr 8, 2025

Haha, the test case highlighted I forgot to change roll() to accept a symbolic block number. Now I added a test to check for this, and it sets the block number to a symbolic value, then tests it against a symbolic value. Now I feel like it's time to close :)

@msooseth msooseth merged commit 6c2869b into main Apr 8, 2025
9 checks passed
@msooseth msooseth deleted the symbolic-block-number branch April 8, 2025 13:53
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.

2 participants