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: identification of contracts in scripts #9346

Merged
merged 2 commits into from
Nov 18, 2024

Conversation

klkvr
Copy link
Member

@klkvr klkvr commented Nov 18, 2024

Motivation

Right now this would fail if there're any contracts with the same name in project due to

if contracts.len() > 1 {
eyre::bail!("{id} has more than one implementation.");
}

Solution

Use complete identifier when getting artifact

@mattsse
Copy link
Member

mattsse commented Nov 18, 2024

failure unrelated

@mattsse mattsse merged commit c13d42e into master Nov 18, 2024
19 of 21 checks passed
@mattsse mattsse deleted the klkvr/fix-script-identification branch November 18, 2024 21:27
@klkvr klkvr self-assigned this Nov 25, 2024
rplusq pushed a commit to rplusq/foundry that referenced this pull request Nov 29, 2024
* fix: identification of contracts in scripts

* clippy
@grandizzy grandizzy added T-bug Type: bug C-forge Command: forge labels Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-forge Command: forge T-bug Type: bug
Projects
Status: Completed
Development

Successfully merging this pull request may close these issues.

3 participants