mirror of
https://github.com/lens-protocol/core.git
synced 2026-04-22 03:02:03 -04:00
FollowNFT now returns token ID
This commit is contained in:
@@ -63,10 +63,11 @@ contract FollowNFT is LensNFTBase, IFollowNFT {
|
||||
}
|
||||
|
||||
/// @inheritdoc IFollowNFT
|
||||
function mint(address to) external override {
|
||||
function mint(address to) external override returns (uint256) {
|
||||
if (msg.sender != HUB) revert Errors.NotHub();
|
||||
uint256 tokenId = ++_tokenIdCounter;
|
||||
_mint(to, tokenId);
|
||||
return tokenId;
|
||||
}
|
||||
|
||||
/// @inheritdoc IFollowNFT
|
||||
|
||||
@@ -30,8 +30,10 @@ interface IFollowNFT {
|
||||
* upon follow.
|
||||
*
|
||||
* @param to The address to mint the NFT to.
|
||||
*
|
||||
* @return An interger representing the minted token ID.
|
||||
*/
|
||||
function mint(address to) external;
|
||||
function mint(address to) external returns (uint256);
|
||||
|
||||
/**
|
||||
* @notice Delegates the caller's governance power to the given delegatee address.
|
||||
@@ -68,5 +70,4 @@ interface IFollowNFT {
|
||||
* @param blockNumber The block number to query the delegated supply at.
|
||||
*/
|
||||
function getDelegatedSupplyByBlockNumber(uint256 blockNumber) external returns (uint256);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user