rename owner > wallet

This commit is contained in:
Josh Stevens
2022-03-01 17:22:08 +00:00
parent fb8d93bb57
commit c38c6d1ea0
2 changed files with 10 additions and 10 deletions

View File

@@ -157,9 +157,9 @@ contract LensHub is ILensHub, LensNFTBase, VersionedInitializable, LensMultiStat
}
/// @inheritdoc ILensHub
function setDefaultProfile(uint256 profileId, address owner) external override whenNotPaused {
function setDefaultProfile(uint256 profileId, address wallet) external override whenNotPaused {
_validateCallerIsProfileOwnerOrDispatcher(profileId);
_setDefaultProfile(profileId, owner);
_setDefaultProfile(profileId, wallet);
}
/// @inheritdoc ILensHub
@@ -916,16 +916,16 @@ contract LensHub is ILensHub, LensNFTBase, VersionedInitializable, LensMultiStat
);
}
function _setDefaultProfile(uint256 profileId, address owner) internal {
function _setDefaultProfile(uint256 profileId, address wallet) internal {
// you should only be able to map this to the owner OR dead address
if (owner != address(0)) {
_validateCallerIsProfileOwner(profileId, owner);
if (wallet != address(0)) {
_validateCallerIsProfileOwner(profileId, wallet);
}
_defaultProfileToAddress[profileId] = owner;
_addressToDefaultProfile[owner] = profileId;
_defaultProfileToAddress[profileId] = wallet;
_addressToDefaultProfile[wallet] = profileId;
emit Events.DefaultProfileSet(profileId, owner, block.timestamp);
emit Events.DefaultProfileSet(profileId, wallet, block.timestamp);
}
function _createComment(DataTypes.CommentData memory vars) internal {

View File

@@ -103,9 +103,9 @@ interface ILensHub {
* @notice Sets the mapping between wallet and its main profile identity
*
* @param profileId The token ID of the profile to set as the main profile identity
* @param owner The address of the wallet which owns this profileId
* @param wallet The address of the wallet which owns this profileId
*/
function setDefaultProfile(uint256 profileId, address owner) external;
function setDefaultProfile(uint256 profileId, address wallet) external;
/**
* @notice Sets the mapping between wallet and its main profile identity via signature with the specified parameters.