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: Remove variable shadowing and lint deploy script #13

Merged
merged 1 commit into from
Dec 12, 2023

Conversation

adam-alchemy
Copy link
Contributor

Motivation

With the latest foundry update, the linter behavior has changed and the deploy script gets some changes.

Additionally, there's a compiler warning from a shadowed variable in the deploy script.

Solution

Lint the script and rename the shadowed variable to remove the compiler warning.

Copy link
Collaborator

@fangting-alchemy fangting-alchemy left a comment

Choose a reason for hiding this comment

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

lgtm. Thanks.

@adam-alchemy adam-alchemy merged commit b14e001 into audit-2023-11-20 Dec 12, 2023
3 checks passed
@adam-alchemy adam-alchemy deleted the adam/fix-deploy branch December 12, 2023 18:02
@@ -128,19 +136,19 @@ contract Deploy is Script {
vm.stopBroadcast();
}

function _addStakeForFactory(address factoryAddr, IMSCAEntryPoint entryPoint) internal {
function _addStakeForFactory(address factoryAddr, IMSCAEntryPoint anEntryPoint) internal {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Don't feel strongly but slightly prefer postfixing with _ (e.g., entryPoint_) than the a or an prefixes. I know we have this elsewhere in the code though.

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.

4 participants