Skip to content
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

feat(config): add [labels] section to foundry.toml #8843

Open
yenchihliao opened this issue Sep 11, 2024 · 1 comment
Open

feat(config): add [labels] section to foundry.toml #8843

yenchihliao opened this issue Sep 11, 2024 · 1 comment
Labels
A-config Area: config T-feature Type: feature

Comments

@yenchihliao
Copy link

Component

Other (please describe)

Describe the feature you would like

By giving alias to frequently interacted contracts in foundry.toml, say [labels], could facilitate development even more. Imagine this feature as a combination of two existing feature. The first is giving alias to rpc_endpoints by [rpc_endpoint] field in foundry.toml; the second is giving alias to addresses by vm.label in scripts and tests.

Being able to use the label in cast commands, say cast send -r eth MAINNET_CONTRACT_I_CARE ..., could already save some time copy and pasting. It also helps the readability.

A further step could be extending the configured labels to all the tests and scripts as if it's in function setup(), saving the time of repeatedly using of vm.label

Additional context

No response

@yenchihliao yenchihliao added T-feature Type: feature T-needs-triage Type: this issue needs to be labelled labels Sep 11, 2024
@zerosnacks zerosnacks changed the title feat(config): enable configuration of address alias in foundry.toml feat(config): add labels field to foundry.toml Sep 11, 2024
@zerosnacks zerosnacks added A-config Area: config and removed T-needs-triage Type: this issue needs to be labelled labels Sep 11, 2024
@zerosnacks zerosnacks changed the title feat(config): add labels field to foundry.toml feat(config): add [labels] section to foundry.toml Sep 11, 2024
@DaniPopes
Copy link
Member

Related: #8834 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-config Area: config T-feature Type: feature
Projects
None yet
Development

No branches or pull requests

3 participants