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

feat: add getter to ProjectCompileOutput #908

Merged

Conversation

tynes
Copy link
Contributor

@tynes tynes commented Feb 13, 2022

Motivation

I'd like to be able to print off the compiled contract names when running forge build.
Addresses foundry-rs/foundry#682 (comment)

Solution

Add a function compiled_contracts_by_compiler_version
to the ProjectCompileOutput that returns a BTreeMap
that maps the compiler version to a vector of the contract
names and contract structs.

PR Checklist

  • Added Tests
  • Added Documentation
  • Updated the changelog

Add a function `compiled_contracts_by_compiler_version`
to the `ProjectCompileOutput` that returns a `BTreeMap`
that maps the compiler version to a vector of the contract
names and contract structs.
@tynes tynes force-pushed the feat/compiled-contracts-by-compiler-version branch from 1287322 to 38b3d91 Compare February 13, 2022 18:57
Copy link
Owner

@gakonst gakonst left a comment

Choose a reason for hiding this comment

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

nice work

@gakonst gakonst merged commit faba6e0 into gakonst:master Feb 13, 2022
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.

2 participants