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

Migrate cheatcodes to use single cheatcode libfunc #2072

Closed
MaksymilianDemitraszek opened this issue Jun 13, 2023 · 1 comment
Closed

Migrate cheatcodes to use single cheatcode libfunc #2072

MaksymilianDemitraszek opened this issue Jun 13, 2023 · 1 comment
Assignees

Comments

@MaksymilianDemitraszek
Copy link
Collaborator

MaksymilianDemitraszek commented Jun 13, 2023

Instead of implementing custom library functions we should use one general library function with signature

extern fn cheatcode<const selector: felt252>(
    input: Span<felt252>
) -> Span<felt252> implicits() nopanic;

All cheatcodes should be implemented using this function

@piotmag769
Copy link
Contributor

piotmag769 commented Jun 26, 2023

Related SW cairo PR starkware-libs/cairo#3488
We would probably have to implement injecting custom starknet state as well - currently we rely on injecting blockifier state in the fork.

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 a pull request may close this issue.

3 participants