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: [spearbit-72] cache dependencies.length earlier #40

Conversation

jaypaik
Copy link
Collaborator

@jaypaik jaypaik commented Jan 7, 2024

@jaypaik jaypaik force-pushed the 01-07-fix_spearbit-86_store_sessionKeyData.contractAccessControlType_in_a_local_variable branch from 17145da to f987ff1 Compare January 7, 2024 22:11
@jaypaik jaypaik force-pushed the 01-07-fix_spearbit-72_cache_dependencies.length_earlier branch from a72e6ad to 6bef45e Compare January 7, 2024 22:12
@jaypaik jaypaik force-pushed the 01-07-fix_spearbit-86_store_sessionKeyData.contractAccessControlType_in_a_local_variable branch from f987ff1 to 9c6d531 Compare January 7, 2024 22:28
@jaypaik jaypaik force-pushed the 01-07-fix_spearbit-72_cache_dependencies.length_earlier branch from 6bef45e to 04609fa Compare January 7, 2024 22:28
@jaypaik jaypaik force-pushed the 01-07-fix_spearbit-86_store_sessionKeyData.contractAccessControlType_in_a_local_variable branch from 9c6d531 to ae27491 Compare January 8, 2024 20:01
@jaypaik jaypaik force-pushed the 01-07-fix_spearbit-72_cache_dependencies.length_earlier branch from 04609fa to 487ec2d Compare January 8, 2024 20:01
@@ -350,11 +350,11 @@ abstract contract PluginManagerInternals is IPluginManager, AccountStorageV1 {
}

// Check that the dependencies match the manifest.
if (dependencies.length != manifest.dependencyInterfaceIds.length) {
uint256 length = dependencies.length;
if (length != manifest.dependencyInterfaceIds.length) {
revert InvalidDependenciesProvided();
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: can we get rid of the empty line here to indicate that the following for loop is a continued usage of length and logic on dependencies?

@jaypaik jaypaik force-pushed the 01-07-fix_spearbit-86_store_sessionKeyData.contractAccessControlType_in_a_local_variable branch from ae27491 to 2a05949 Compare January 8, 2024 20:38
@jaypaik jaypaik force-pushed the 01-07-fix_spearbit-72_cache_dependencies.length_earlier branch from 487ec2d to 8b20450 Compare January 8, 2024 20:38
Base automatically changed from 01-07-fix_spearbit-86_store_sessionKeyData.contractAccessControlType_in_a_local_variable to audit-2023-11-20 January 8, 2024 22:27
@jaypaik jaypaik merged commit 27fe9de into audit-2023-11-20 Jan 8, 2024
3 checks passed
@jaypaik jaypaik deleted the 01-07-fix_spearbit-72_cache_dependencies.length_earlier branch January 8, 2024 22:28
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.

2 participants