foundry-rs / foundry-rs/foundry
feat(cast): Add `--create2` flag to `cast send`
Open
C-cast
T-feature
- Dominant language
- Rust
- Stars
- 10.6k
- Forks
- 2.6k
- Avg merge
- 18h 20m
- Merged PRs (30d)
- 510
Description
### Component
Cast
### Describe the feature you would like
Be able to deploy contracts from a raw hex string at a deterministic address.
proposed format
```
cast send --create2 $BYTECODE
```
### Additional context
This feature could be of interest to use the extcodecopy memory access trick (push a raw contract containing data to access), while enabling a user to have the same deployed address on all chains.
Contributor guide
Assessment
This issue has not been assessed yet.