mirror of
https://github.com/lens-protocol/core.git
synced 2026-04-22 03:02:03 -04:00
misc: Mocks directory moved from main directory to tests one
This commit is contained in:
34
test/mocks/MockDeprecatedReferenceModule.sol
Normal file
34
test/mocks/MockDeprecatedReferenceModule.sol
Normal file
@@ -0,0 +1,34 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
pragma solidity ^0.8.15;
|
||||
|
||||
import {IDeprecatedReferenceModule} from 'contracts/interfaces/IDeprecatedReferenceModule.sol';
|
||||
|
||||
/**
|
||||
* @dev This is a simple mock follow module to be used for testing.
|
||||
*/
|
||||
contract MockDeprecatedReferenceModule is IDeprecatedReferenceModule {
|
||||
function initializeReferenceModule(
|
||||
uint256,
|
||||
uint256,
|
||||
bytes calldata data
|
||||
) external pure override returns (bytes memory) {
|
||||
uint256 number = abi.decode(data, (uint256));
|
||||
require(number == 1, 'MockDeprecatedReferenceModule: invalid');
|
||||
return new bytes(0);
|
||||
}
|
||||
|
||||
function processComment(
|
||||
uint256 profileId,
|
||||
uint256 pointedProfileId,
|
||||
uint256 pointedPubId,
|
||||
bytes calldata data
|
||||
) external override {}
|
||||
|
||||
function processMirror(
|
||||
uint256 profileId,
|
||||
uint256 pointedProfileId,
|
||||
uint256 pointedPubId,
|
||||
bytes calldata data
|
||||
) external override {}
|
||||
}
|
||||
Reference in New Issue
Block a user