The home for Hyperlane core contracts, sdk packages, and other infrastructure
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
hyperlane-monorepo/solidity/optics-core/contracts/test/MockRecipient.sol

21 lines
538 B

// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity >=0.6.11;
import {IMessageRecipient} from "../../interfaces/IMessageRecipient.sol";
contract MockRecipient is IMessageRecipient {
// solhint-disable-next-line no-empty-blocks
constructor() {}
function handle(
uint32,
bytes32,
bytes memory
) external pure override returns (bytes memory) {
return bytes(message());
}
function message() public pure returns (string memory) {
return "message received";
}
}