Skip to content

Commit

Permalink
add _buildOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
magj2006 committed Oct 28, 2024
2 parents 8458152 + 5c1bdb2 commit 430cd28
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/ExocoreGateway.sol
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,7 @@ contract ExocoreGateway is
whenNotPaused
{
bytes memory payload = abi.encodePacked(act, actionArgs);

bytes memory options = _buildOptions(srcChainId, act);

MessagingFee memory fee = _quote(srcChainId, payload, options, false);
Expand All @@ -538,6 +539,7 @@ contract ExocoreGateway is
/// @inheritdoc IExocoreGateway
function quote(uint32 srcChainId, bytes calldata _message) public view returns (uint256 nativeFee) {
Action act = Action(uint8(_message[0]));

bytes memory options = _buildOptions(srcChainId, act);

MessagingFee memory fee = _quote(srcChainId, _message, options, false);
Expand Down

0 comments on commit 430cd28

Please sign in to comment.