We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e3f9c8 commit 3306b7aCopy full SHA for 3306b7a
1 file changed
src/protocol/taiko_alethia/MessageRelayer.sol
@@ -96,7 +96,7 @@ contract MessageRelayer is ReentrancyGuardTransient, IMessageRelayer {
96
} else {
97
// EIP-150: Only 63/64 of gas can be forwarded to external calls.
98
// Check against actual forwardable gas with buffer for operations before the call.
99
- uint256 maxForwardableGas = (gasleft() * 63 / 64) - BUFFER;
+ uint256 maxForwardableGas = (gasleft() - BUFFER) * 63 / 64;
100
require(gasLimit <= maxForwardableGas, InsufficientGas());
101
(forwardMessageSuccess,) = to.call{value: valueToSend, gas: gasLimit}(data);
102
}
0 commit comments