From 7d9849fadce388a2fa20dac13353f6e5bcccf800 Mon Sep 17 00:00:00 2001 From: Sam MacPherson Date: Wed, 21 Aug 2024 07:38:29 -0400 Subject: [PATCH] dont silently cast the gas limit in Optimism --- src/forwarders/OptimismForwarder.sol | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/forwarders/OptimismForwarder.sol b/src/forwarders/OptimismForwarder.sol index 5566504..afbe311 100644 --- a/src/forwarders/OptimismForwarder.sol +++ b/src/forwarders/OptimismForwarder.sol @@ -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 ); }