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

fix: always compile sources when running scripts #7738

Merged
merged 1 commit into from
Apr 20, 2024

Conversation

klkvr
Copy link
Member

@klkvr klkvr commented Apr 20, 2024

Motivation

Closes #7732, similar to #7572

Solution

I believe we should add a way for files to "import" other sources into compiler input other than Solidity imports to allow such setups with getCode. Something like #7025 should work (but I don't really like this exact approach)

@klkvr klkvr merged commit 167295e into master Apr 20, 2024
19 checks passed
@klkvr klkvr deleted the klkvr/compile-sources-for-script branch April 20, 2024 12:39
tynes added a commit to ethereum-optimism/optimism that referenced this pull request Apr 22, 2024
Updates foundry to `63fff3510408b552f11efb8196f48cfe6c1da664`
which includes foundry-rs/foundry#7738.
This fixes the issue foundry-rs/foundry#7732
which was preventing #10106
from just working.

Props to the foundry devs for fixing our issues very quickly, unblocking
our ability to ship.

Need to follow up with a bump to `ci-builder` such that it includes this
release of foundry and then rebase #10106 on top so that it can pass
tests.
github-merge-queue bot pushed a commit to ethereum-optimism/optimism that referenced this pull request Apr 22, 2024
Updates foundry to `63fff3510408b552f11efb8196f48cfe6c1da664`
which includes foundry-rs/foundry#7738.
This fixes the issue foundry-rs/foundry#7732
which was preventing #10106
from just working.

Props to the foundry devs for fixing our issues very quickly, unblocking
our ability to ship.

Need to follow up with a bump to `ci-builder` such that it includes this
release of foundry and then rebase #10106 on top so that it can pass
tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

request: forge script build with full artifacts for vm.getDeployedCode to work
2 participants