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/contracts/test/TestPostDispatchHook.sol

22 lines
595 B

// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity >=0.8.0;
import {IPostDispatchHook} from "../interfaces/hooks/IPostDispatchHook.sol";
contract TestPostDispatchHook is IPostDispatchHook {
uint256 public mockGasQuote = 25000;
function postDispatch(
bytes calldata, /*metadata*/
bytes calldata /*message*/
) external payable override {
// test - empty
}
function quoteDispatch(
bytes calldata, /*metadata*/
bytes calldata /*message*/
) external view override returns (uint256) {
return mockGasQuote;
}
}