mirror of
https://github.com/lens-protocol/core.git
synced 2026-04-22 03:02:03 -04:00
misc: Block status mapping renamed to follow convention of access
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user