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/TestCommon.sol

30 lines
700 B

// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity >=0.6.11;
import "../Common.sol";
contract TestCommon is Common {
function setUpdater(address _updater) external {
updater = _updater;
}
function testCheckSig(
bytes32 _oldRoot,
bytes32 _newRoot,
bytes memory _signature
) external view returns (bool) {
return _isUpdaterSignature(_oldRoot, _newRoot, _signature);
}
function testDomainHash(uint32 _remoteDomain)
external
pure
returns (bytes32)
{
return keccak256(abi.encodePacked(_remoteDomain, "OPTICS"));
}
function _fail() internal override {
_setFailed();
}
}