Skip to content

Commit

Permalink
make stateMachineCommitment payable
Browse files Browse the repository at this point in the history
  • Loading branch information
seunlanlege committed Jul 23, 2024
1 parent 19bf64f commit cbaaa9e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions interfaces/IDispatcher.sol
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ interface IDispatcher {
/**
* @dev Dispatch a POST request to Hyperbridge
*
* @notice Payment for the request can either be made with the native token or the IIsmpHost.feeToken.
* @notice Payment for the request can be made with either the native token or the IIsmpHost.feeToken.
* If native tokens are supplied, it will perform a swap under the hood using the local uniswap router.
* Will revert if enough native tokens are not provided.
*
Expand All @@ -74,7 +74,7 @@ interface IDispatcher {
/**
* @dev Dispatch a GET request to Hyperbridge
*
* @notice Payment for the request can either be made with the native token or the IIsmpHost.feeToken.
* @notice Payment for the request can be made with either the native token or the IIsmpHost.feeToken.
* If native tokens are supplied, it will perform a swap under the hood using the local uniswap router.
* Will revert if enough native tokens are not provided.
*
Expand All @@ -89,7 +89,7 @@ interface IDispatcher {
/**
* @dev Dispatch a POST response to Hyperbridge
*
* @notice Payment for the request can either be made with the native token or the IIsmpHost.feeToken.
* @notice Payment for the request can be made with either the native token or the IIsmpHost.feeToken.
* If native tokens are supplied, it will perform a swap under the hood using the local uniswap router.
* Will revert if enough native tokens are not provided.
*
Expand All @@ -106,7 +106,7 @@ interface IDispatcher {
* This is provided for use only on pending requests, such that when they timeout,
* the user can recover the entire relayer fee.
*
* @notice Payment can either be made with the native token or the IIsmpHost.feeToken.
* @notice Payment can be made with either the native token or the IIsmpHost.feeToken.
* If native tokens are supplied, it will perform a swap under the hood using the local uniswap router.
* Will revert if enough native tokens are not provided.
*
Expand All @@ -124,7 +124,7 @@ interface IDispatcher {
* This is provided for use only on pending responses, such that when they timeout,
* the user can recover the entire relayer fee.
*
* @notice Payment can either be made with the native token or the IIsmpHost.feeToken.
* @notice Payment can be made with either the native token or the IIsmpHost.feeToken.
* If native tokens are supplied, it will perform a swap under the hood using the local uniswap router.
* Will revert if enough native tokens are not provided.
*
Expand Down
2 changes: 1 addition & 1 deletion interfaces/IIsmpHost.sol
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ interface IIsmpHost is IDispatcher {
* @param height - state machine height
* @return the state commitment at `height`
*/
function stateMachineCommitment(StateMachineHeight memory height) external view returns (StateCommitment memory);
function stateMachineCommitment(StateMachineHeight memory height) external payable returns (StateCommitment memory);

/**
* @param height - state machine height
Expand Down

0 comments on commit cbaaa9e

Please sign in to comment.