Skip to content

tracking: default to CreateX for CREATE2/3 factory for new scripts #2638

@sambacha

Description

@sambacha

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)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Todo

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions