-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
C-forgeCommand: forgeCommand: forgeT-featureType: featureType: featurefirst issueA good way to start contributingA good way to start contributing
Description
Component
Forge
Describe the feature you would like
forge-std's StdChains provides a way to retrieve chain info for a chain id or chain alias: https://github.com/foundry-rs/forge-std/blob/6853b9ec7df5dc0c213b05ae67785ad4f4baa0ea/src/StdChains.sol#L69
However this can get easily out of sync when support for new chains is added. We can fix this by providing native cheatcodes vm.getChain(alias) and vm.getChain(chainId) that returns a Chain struct as https://github.com/foundry-rs/forge-std/blob/6853b9ec7df5dc0c213b05ae67785ad4f4baa0ea/src/StdChains.sol#L45
Additional context
No response
StackOverflowExcept1on
Metadata
Metadata
Assignees
Labels
C-forgeCommand: forgeCommand: forgeT-featureType: featureType: featurefirst issueA good way to start contributingA good way to start contributing
Type
Projects
Status
Done