-
Notifications
You must be signed in to change notification settings - Fork 2.3k
fix: correct comment for Git::has_submodules and remove_contract #12530
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
base: master
Are you sure you want to change the base?
Conversation
crates/cli/src/utils/cmd.rs
Outdated
| /// Given a `Project`'s output, finds the contract by path and name and returns its | ||
| /// ABI, creation bytecode, and `ArtifactId`. | ||
| #[track_caller] | ||
| pub fn remove_contract( |
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.
please also rename the function.
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.
please also rename the function.
Did it ser, thank you for your review
onbjerg
left a comment
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.
code needs to be formatted with rustfmt nightly otherwise lgtm
did it, sorry for inconvenience |
The remove_contract doc suggested mutation and returning runtime bytecode, but the function only searched and returned ABI + creation bytecode + ArtifactId.
The Git::has_submodules docstring incorrectly stated that has_submodules() returns true when there are no submodules. The implementation returns true when git submodule status produces at least one line, i.e., when submodules exist.