misc: Block status mapping renamed to follow convention of access

This commit is contained in:
donosonaumczuk
2023-01-18 19:27:44 -03:00
parent f180a9934b
commit 53971805a3
3 changed files with 4 additions and 4 deletions

View File

@@ -553,7 +553,7 @@ contract LensHub is LensNFTBase, VersionedInitializable, LensMultiState, LensHub
/// @inheritdoc ILensHub
function isBlocked(uint256 profileId, uint256 byProfileId) external view returns (bool) {
return _blockStatusByProfileIdByBlockeeProfileId[byProfileId][profileId];
return _blockStatusByBlockeeProfileIdByProfileId[byProfileId][profileId];
}
/// @inheritdoc ILensHub

View File

@@ -32,5 +32,5 @@ abstract contract LensHubStorage {
// new storage
mapping(address => mapping(address => bool)) internal _delegatedExecutorApproval; // slot 25
mapping(uint256 => string) internal _metadataByProfile; // slot 26
mapping(uint256 => mapping(uint256 => bool)) internal _blockStatusByProfileIdByBlockeeProfileId; // slot 27
mapping(uint256 => mapping(uint256 => bool)) internal _blockStatusByBlockeeProfileIdByProfileId; // slot 27
}

View File

@@ -125,7 +125,7 @@ library InteractionHelpers {
}
uint256 blockStatusByProfileSlot;
// Calculates the slot of the block status internal mapping once accessed by `byProfileId`.
// i.e. the slot of `_blockStatusByProfileIdByBlockeeProfileId[byProfileId]`
// i.e. the slot of `_blockStatusByBlockeeProfileIdByProfileId[byProfileId]`
assembly {
mstore(0, byProfileId)
mstore(32, BLOCK_STATUS_MAPPING_SLOT)
@@ -150,7 +150,7 @@ library InteractionHelpers {
IFollowNFT(followNFT).block(idOfProfileToSetBlockStatus);
}
// Stores the block status.
// i.e. `_blockStatusByProfileIdByBlockeeProfileId[byProfileId][idOfProfileToSetBlockStatus] = setToBlocked;`
// i.e. `_blockStatusByBlockeeProfileIdByProfileId[byProfileId][idOfProfileToSetBlockStatus] = setToBlocked;`
assembly {
mstore(0, idOfProfileToSetBlockStatus)
mstore(32, blockStatusByProfileSlot)