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

refactor(solc): unify find/remove api #1449

Merged
merged 2 commits into from
Jul 4, 2022

Conversation

mattsse
Copy link
Collaborator

@mattsse mattsse commented Jul 4, 2022

Motivation

unify API to get/remove a contract/artifact for all types that contain mappings for file -> name -> contract

Solution

  • {find,remove}_first(name)
  • {find,remove}(file, name)
  • {find,remove}_contract(ContractInfo{path?, name})

PR Checklist

  • Added Tests
  • Added Documentation
  • Updated the changelog

@gakonst gakonst merged commit 3c1de64 into gakonst:master Jul 4, 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