Skip to content

Commit

Permalink
dont silently cast the gas limit in Optimism
Browse files Browse the repository at this point in the history
  • Loading branch information
hexonaut committed Aug 21, 2024
1 parent 07e27b6 commit 7d9849f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/forwarders/OptimismForwarder.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,24 @@ library OptimismForwarder {
address l1CrossDomain,
address target,
bytes memory message,
uint256 gasLimit
uint32 gasLimit
) internal {
ICrossDomainOptimism(l1CrossDomain).sendMessage(
target,
message,
uint32(gasLimit)
gasLimit
);
}

function sendMessageL2toL1(
address target,
bytes memory message,
uint256 gasLimit
uint32 gasLimit
) internal {
ICrossDomainOptimism(L2_CROSS_DOMAIN).sendMessage(
target,
message,
uint32(gasLimit)
gasLimit
);
}

Expand Down

0 comments on commit 7d9849f

Please sign in to comment.