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-62] cache owners_.length #42

Merged

Conversation

jaypaik
Copy link
Collaborator

@jaypaik jaypaik commented Jan 7, 2024

Comment on lines +406 to +413
uint256 length = ownersToRemove.length;
for (uint256 i; i < length;) {
if (!ownerSet.tryRemove(associated, CastLib.toSetValue(ownersToRemove[i]))) {
revert OwnerDoesNotExist(ownersToRemove[i]);
}

unchecked {
++j;
++i;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This was updated for consistency.

@jaypaik jaypaik force-pushed the 01-07-fix_spearbit-66_remove_redundant_0_check branch from 5034db5 to 33dd87e Compare January 8, 2024 17:20
@jaypaik jaypaik force-pushed the 01-07-fix_spearbit-62_cache_owners_.length branch from 31e6986 to 60b812d Compare January 8, 2024 17:20
@jaypaik jaypaik force-pushed the 01-07-fix_spearbit-66_remove_redundant_0_check branch from 33dd87e to 50a363a Compare January 8, 2024 20:01
@jaypaik jaypaik force-pushed the 01-07-fix_spearbit-62_cache_owners_.length branch from 60b812d to ca45dcf Compare January 8, 2024 20:01
@jaypaik jaypaik force-pushed the 01-07-fix_spearbit-66_remove_redundant_0_check branch from 50a363a to 801d978 Compare January 8, 2024 20:39
@jaypaik jaypaik force-pushed the 01-07-fix_spearbit-62_cache_owners_.length branch from ca45dcf to 1bf7261 Compare January 8, 2024 20:39
@jaypaik jaypaik force-pushed the 01-07-fix_spearbit-66_remove_redundant_0_check branch from 801d978 to 716f278 Compare January 8, 2024 22:29
Base automatically changed from 01-07-fix_spearbit-66_remove_redundant_0_check to audit-2023-11-20 January 8, 2024 22:29
@jaypaik jaypaik force-pushed the 01-07-fix_spearbit-62_cache_owners_.length branch from 1bf7261 to 373e682 Compare January 8, 2024 22:30
@jaypaik jaypaik merged commit 2b9c5d9 into audit-2023-11-20 Jan 8, 2024
3 checks passed
@jaypaik jaypaik deleted the 01-07-fix_spearbit-62_cache_owners_.length branch January 8, 2024 22:30
jaypaik added a commit that referenced this pull request Jan 25, 2024
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