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: forge create Contract #295

Merged
merged 1 commit into from
Dec 23, 2021
Merged

fix: forge create Contract #295

merged 1 commit into from
Dec 23, 2021

Conversation

gakonst
Copy link
Member

@gakonst gakonst commented Dec 23, 2021

Previously, you could only forge create path/Contract.sol:ContractName, and if you did forge create ContractName it'd panic the first time it runs because there's no such artifact in the cache yet.

With this PR you can just forge create ContractName, and if there's 2 with the same ones it proceeds to error out and ask you to provide the full path

previously you had to specify the full path, and it'd panic if you only provided a name
@gakonst gakonst merged commit c5f18b6 into master Dec 23, 2021
@gakonst gakonst deleted the fix/create-with-name branch December 23, 2021 20:05
clifton pushed a commit to clifton/foundry that referenced this pull request Dec 27, 2021
previously you had to specify the full path, and it'd panic if you only provided a name
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.

1 participant