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(forge): do not error when artifact does not have an abi #7184

Merged
merged 2 commits into from
Feb 19, 2024

Conversation

klkvr
Copy link
Member

@klkvr klkvr commented Feb 19, 2024

Motivation

Closes #7182
Previous linker impl filtered out artifacts without abi during linking

if let (Some(abi), Some(bytecode), Some(runtime)) =

Solution

I don't known in which cases solc emits artifacts without an abi, would be nice to get a repro and add a test case for this

Copy link
Member

@DaniPopes DaniPopes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It can also be a bad artifact that's missing the "abi" key, you can try it out by just removing it in a random artifact file and running forge test

@DaniPopes DaniPopes merged commit 107dc41 into foundry-rs:master Feb 19, 2024
19 checks passed
klkvr added a commit to klkvr/foundry that referenced this pull request Feb 20, 2024
…rs#7184)

* fix(forge): do not error when artifact does not have an abi

* unused import
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.

getting a "we should have an abi by now" error
2 participants