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

Cheatcode for getting hash of the block #2648

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

PedroRosalba
Copy link

@PedroRosalba PedroRosalba commented Nov 6, 2024

Closes #684

Introduced changes

Checklist

  • Linked relevant issue
  • Updated relevant documentation
  • Added relevant tests
  • Performed self-review of the code
  • Added changes to CHANGELOG.md

Copy link
Collaborator

@kkawula kkawula left a comment

Choose a reason for hiding this comment

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

Hi @PedroRosalba, unfortunately, your solution isn't proper.
Please study other pr's that introduce cheatcode e.g. #2634 or many other you can find in our repo history.
Your solution should contain:

  • cheatcode implementation
  • entry in snfoundry_std
  • e2e tests (on cairo side)
  • documentation

@kkawula
Copy link
Collaborator

kkawula commented Nov 7, 2024

Hints for development:

  • run cargo test e2e to test locally
  • run cargo lint to check stylistic errors or deviations from a coding standard
  • run cargo fmt to format your code

If your tests pass, please submit your PR as ready to review.
Good luck!

@kkawula kkawula marked this pull request as draft November 7, 2024 08:35
@PedroRosalba PedroRosalba marked this pull request as ready for review November 8, 2024 02:49
@PedroRosalba
Copy link
Author

hey, can you review for some feedback? unfortunately I could not test the code (my computer even with no other tasks running cannot run cargo test e2e). sorry for the inconvenience. looking forward to continue working on this. sorry again.

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.

Cheatcode mocking get_block_hash_syscall
2 participants