-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Added check to forc_abi
to fail on non-contracts
#1105
Conversation
Produces an error rather than panicking when the user specifies a semver version which is currently unsupported. As mentioned at: #918 (comment)
@adlerjohn & @mitchmindtree getting this error on my machine even though CI passed:
|
Do you have |
accidentally closed while trying to quote reply 🤦🏻 yes, I'll remove those rn thank you! |
…ions to accept TreeType and updated docstrings
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Getting closer!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approving to dismiss my requested changes but deferring to @mitchmindtree
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Epic work @eureka-cpu, I think this is good to go!
Closes #526 -- Initially reused the logic found in
forc_deploy
&forc_run
to throw an error instead of an empty abi[]
if the wrongprogram
type was found.Closes #1106 -- Replaced the
CliError
struct withanyhow::Error
.Closes #1117 -- Separated the tests in vec
positive_project_names
ine2e_vm_tests::mod
into...no_abi
,...with_abi
, removed thejson.oracle
files and updated the surrounding functions to handle the aforementioned changes.I've also converted the reused logic in
forc_abi_json
,forc_deploy
&forc_run
into a single function calledcheck_program_type
. To avoid circular dependency, I've moved it and its associated functions out ofutils::cli_error
and intoforc_pkg::pkg
since we decided to implementprogram_type
as a method onmanifest::Manifest
. This helps by removing duplicate code which is being tracked here: #1107 .