mirror of
https://github.com/lens-protocol/core.git
synced 2026-04-22 03:02:03 -04:00
33 lines
930 B
Solidity
33 lines
930 B
Solidity
// SPDX-License-Identifier: MIT
|
|
|
|
pragma solidity 0.8.15;
|
|
|
|
import {IFollowNFT} from '../interfaces/IFollowNFT.sol';
|
|
|
|
/**
|
|
* @dev This is a helper contract used for internal testing.
|
|
*
|
|
* NOTE: This contract is not meant to be deployed and is unsafe for use.
|
|
*/
|
|
contract Helper {
|
|
/**
|
|
* @dev This is a helper function that exposes the block number due to the inconsistency of
|
|
* fetching the block number from scripts.
|
|
*/
|
|
function getBlockNumber() external view returns (uint256) {
|
|
return block.number;
|
|
}
|
|
|
|
/**
|
|
* @dev This is a helper function to aid in testing same-block delegation in the FollowNFT contract.
|
|
*/
|
|
function batchDelegate(
|
|
IFollowNFT nft,
|
|
address first,
|
|
address second
|
|
) external {
|
|
// nft.delegate(first); TODO: Adapt mock to new interface later.
|
|
// nft.delegate(second); TODO: Adapt mock to new interface later.
|
|
}
|
|
}
|