-
Notifications
You must be signed in to change notification settings - Fork 2.6k
feat: getCode for linked contracts #1161
Copy link
Copy link
Closed
Labels
A-cheatcodesArea: cheatcodesArea: cheatcodesC-forgeCommand: forgeCommand: forgeCmd-forge-testCommand: forge testCommand: forge testD-hardDifficulty: hardDifficulty: hardP-lowPriority: lowPriority: lowT-featureType: featureType: feature
Metadata
Metadata
Assignees
Labels
A-cheatcodesArea: cheatcodesArea: cheatcodesC-forgeCommand: forgeCommand: forgeCmd-forge-testCommand: forge testCommand: forge testD-hardDifficulty: hardDifficulty: hardP-lowPriority: lowPriority: lowT-featureType: featureType: feature
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
StatusShow more project fields
Completed
Component
Forge
Describe the feature you would like
This is quite a niche feature request, I think. But currently it's not possible to use the
getCodecheatcode with contracts that have linked libraries, so you can't import a local contract using a different solidity version in your tests if it's using one.Additional context
The specific use case I ran into was importing a Balancer pool (
0.7.6) that implemented an oracle using Balancer's query processor library into a testing suite of a newer project (0.8.11).