Skip to content

Commit

Permalink
reuse numStaticFields
Browse files Browse the repository at this point in the history
  • Loading branch information
alvrs committed Sep 23, 2023
1 parent 9729f67 commit e452215
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/store/src/StoreCore.sol
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ library StoreCore {
uint256 end
) internal view returns (bytes memory) {
uint8 numStaticFields = uint8(fieldLayout.numStaticFields());
if (fieldIndex < fieldLayout.numStaticFields()) {
if (fieldIndex < numStaticFields) {
revert IStoreErrors.Store_NotDynamicField();
}

Expand Down

0 comments on commit e452215

Please sign in to comment.