Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

feat: ability to get artifacts + sources #1080

Merged
merged 1 commit into from
Mar 27, 2022

Conversation

onbjerg
Copy link
Collaborator

@onbjerg onbjerg commented Mar 27, 2022

Motivation

We switched out known_contracts in Foundry to use ArtifactId as a key instead of just the contract name to resolve name collisions. In forge run we need both a BTreeMap<ArtifactId, Artifact> collection and the sources of the project (for source mapping).

Solution

Add ProjectCompileOutput::into_artifacts_with_sources

PR Checklist

  • Added Tests
  • Added Documentation
  • Updated the changelog

Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

lgtm

@gakonst gakonst merged commit 919a570 into gakonst:master Mar 27, 2022
@onbjerg onbjerg deleted the onbjerg/artifacts-with-sources branch March 28, 2022 09:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants