Files
core/contracts/mocks/Helper.sol
2022-11-23 23:54:48 +00:00

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.
}
}