Skip to content

Commit

Permalink
Add forge test for Mailbox (#2713)
Browse files Browse the repository at this point in the history
  • Loading branch information
yorhodes authored Sep 8, 2023
1 parent 0c3f1ed commit 115ef53
Show file tree
Hide file tree
Showing 34 changed files with 1,003 additions and 559 deletions.
10 changes: 8 additions & 2 deletions solidity/contracts/GasRouter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
pragma solidity >=0.6.11;

import {Router} from "./Router.sol";
import {IGPMetadata} from "./libs/hooks/IGPMetadata.sol";

abstract contract GasRouter is Router {
// ============ Mutable Storage ============
Expand Down Expand Up @@ -45,9 +46,14 @@ abstract contract GasRouter is Router {
returns (uint256 _gasPayment)
{
return
interchainGasPaymaster.quoteGasPayment(
mailbox.quoteDispatch(
_destinationDomain,
destinationGas[_destinationDomain]
_mustHaveRemoteRouter(_destinationDomain),
"",
IGPMetadata.formatMetadata(
destinationGas[_destinationDomain],
address(this)
)
);
}

Expand Down
Loading

0 comments on commit 115ef53

Please sign in to comment.