foundry-rs / foundry-rs/foundry

feat(cast): Add `--create2` flag to `cast send`

Open
#6,095 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.