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(nargo): give contract artifacts unique names to prevent overwrites #1158

Merged
merged 1 commit into from
Apr 17, 2023

Conversation

TomAFrench
Copy link
Member

Related issue(s)

Resolves #1157

Description

Summary of changes

This PR includes the contract name in the build artifact's file name to allow us to compile multiple contracts from the same crate.

Dependency additions / changes

Test additions / changes

Checklist

  • I have tested the changes locally.
  • I have formatted the changes with Prettier and/or cargo fmt with default settings.
  • I have linked this PR to the issue(s) that it resolves.
  • I have reviewed the changes on GitHub, line by line.
  • I have ensured all changes are covered in the description.

Documentation needs

  • This PR requires documentation updates when merged.

Additional context

@TomAFrench TomAFrench requested a review from joss-aztec April 17, 2023 12:47
@kevaundray
Copy link
Contributor

This is on me for missing during review.

I wonder if we can have PR artifacts that show what the ABI looks like, or possibly some ABI artifact that gets checked in and the CI checks if they match

@TomAFrench
Copy link
Member Author

Sure, we could definitely have this as an integration test.

@TomAFrench TomAFrench added this pull request to the merge queue Apr 17, 2023
Merged via the queue into master with commit 1227b2c Apr 17, 2023
@TomAFrench TomAFrench deleted the fix-multiple-contracts branch April 17, 2023 14:05
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.

Only last contract declaration appears in compilation output
3 participants