-
Notifications
You must be signed in to change notification settings - Fork 208
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
Support cheatable state in contract constructors #254
Comments
Consider #137 when implementing |
6 tasks
github-merge-queue bot
pushed a commit
that referenced
this issue
Aug 24, 2023
<!-- Reference any GitHub issues resolved by this PR --> Closes #254 ## Introduced changes <!-- A brief description of the changes --> - Use `call_contract` instead of invoking transaction in deploy - Catch all deploy syscalls, so that cheating should work for all depths - Clone deploy logic from blockifier + redirect constructor execution to our cheatable execution ## Checklist <!-- Make sure all of these are complete --> - [x] Add test for checking deploy cheating for call depth > 1 - [x] Linked relevant issue - [x] Updated relevant documentation - [x] Added relevant tests - [x] Performed self-review of the code - [x] Added changes to `CHANGELOG.md`
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To what component is your bug related to?
Forge
Feature Request
We should allow mocking the constructor block info (and not only) state.
This should include
roll
,warp
etc.The process will include breaking up the
deploy
into smaller functions and using lower-level ones instead of transaction-level blockifier logic, to allow modifying execution context.The text was updated successfully, but these errors were encountered: