Skip to content

Commit

Permalink
quote requests
Browse files Browse the repository at this point in the history
  • Loading branch information
seunlanlege committed Aug 21, 2024
1 parent cccaa8a commit c3ddb0d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions interfaces/IIsmpModule.sol
Original file line number Diff line number Diff line change
Expand Up @@ -122,17 +122,17 @@ abstract contract BaseIsmpModule is IIsmpModule {
}

// @dev returns the quoted fee for a dispatch
function quote(DispatchPost memory post) internal view returns (uint256) {
function quote(DispatchPost memory post) public view returns (uint256) {
return post.fee + (post.body.length * IIsmpHost(host()).perByteFee());
}

// @dev returns the quoted fee for a dispatch
function quote(DispatchPostResponse memory res) internal view returns (uint256) {
function quote(DispatchPostResponse memory res) public view returns (uint256) {
return res.fee + (res.response.length * IIsmpHost(host()).perByteFee());
}

// @dev returns the quoted fee for a dispatch
function quote(DispatchGet memory get) internal view returns (uint256) {
function quote(DispatchGet memory get) public view returns (uint256) {
return get.fee + (get.context.length * IIsmpHost(host()).perByteFee());
}

Expand Down

0 comments on commit c3ddb0d

Please sign in to comment.