mirror of
https://github.com/lens-protocol/core.git
synced 2026-04-22 03:02:03 -04:00
rename owner > wallet
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user