From fe1ca5ec1e2cd061cb77fab8dfe46c7a48e2ec74 Mon Sep 17 00:00:00 2001 From: Aaron Abu Usama <50079365+pythonpete32@users.noreply.github.com> Date: Sun, 30 Oct 2022 16:44:32 +0400 Subject: [PATCH] Update IFollowNFT.sol these functions should be marked view as per the implementation [here](https://github.com/lens-protocol/core/blob/b678530d020ecf31697ab9ed995e07fec25d7afa/contracts/core/FollowNFT.sol#L118) and [here](https://github.com/lens-protocol/core/blob/b678530d020ecf31697ab9ed995e07fec25d7afa/contracts/core/FollowNFT.sol#L105) --- contracts/interfaces/IFollowNFT.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/interfaces/IFollowNFT.sol b/contracts/interfaces/IFollowNFT.sol index b904976..4c899d3 100644 --- a/contracts/interfaces/IFollowNFT.sol +++ b/contracts/interfaces/IFollowNFT.sol @@ -56,7 +56,7 @@ interface IFollowNFT { * * @return uint256 The power of the given user at the given block number. */ - function getPowerByBlockNumber(address user, uint256 blockNumber) external returns (uint256); + function getPowerByBlockNumber(address user, uint256 blockNumber) external view returns (uint256); /** * @notice Returns the total delegated supply at a specified block number. This is the sum of all @@ -66,5 +66,5 @@ interface IFollowNFT { * * @return uint256 The delegated supply at the given block number. */ - function getDelegatedSupplyByBlockNumber(uint256 blockNumber) external returns (uint256); + function getDelegatedSupplyByBlockNumber(uint256 blockNumber) external view returns (uint256); }