foundry-rs / foundry-rs/foundry
tracking: default to `CreateX` for `CREATE2/3` factory for new scripts
Open
C-forge
Cmd-forge-script
T-feature
- Dominant language
- Rust
- Stars
- 10.6k
- Forks
- 2.6k
- Avg merge
- 18h 20m
- Merged PRs (30d)
- 510
Description
In order to remain backwards compatible for older scripts an approach was found by introducing a `Script2.sol`.
The existing `Script` would remain using Nick's factory whereas `Script2` defaults to use CreateX. We will update the template generated by `forge init` to use the new `Script2`.
Action items:
- [ ] Introduce the relevant constants and bytecodes
- [ ] Add `Script2` to `forge-std` & make it so that `Script2` triggers the use of CreateX
- [ ] Expose various cheatcodes and helpers to use all the different functionalities of CreateX incl. CREATE3
- [ ] Add native support for CreateX mining (optional)
Contributor guide
Assessment
This issue has not been assessed yet.