From 442886ed5ff8a0b9ab477b191f5238541ee6d772 Mon Sep 17 00:00:00 2001 From: GianfrancoBazzani <55500596+GianfrancoBazzani@users.noreply.github.com> Date: Mon, 17 Jun 2024 20:49:25 +0200 Subject: [PATCH] Fix repeated words in `ERC2771Forwarder` comments (#5088) --- contracts/metatx/ERC2771Forwarder.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/metatx/ERC2771Forwarder.sol b/contracts/metatx/ERC2771Forwarder.sol index b305cb019..03c3bee70 100644 --- a/contracts/metatx/ERC2771Forwarder.sol +++ b/contracts/metatx/ERC2771Forwarder.sol @@ -347,7 +347,7 @@ contract ERC2771Forwarder is EIP712, Nonces { // We can't know X after CALL dynamic costs, but we want it to be such that X * 63 / 64 >= req.gas. // Let Y be the gas used in the subcall. gasleft() measured immediately after the subcall will be gasleft() = X - Y. // If the subcall ran out of gas, then Y = X * 63 / 64 and gasleft() = X - Y = X / 64. - // Under this assumption req.gas / 63 > gasleft() is true is true if and only if + // Under this assumption req.gas / 63 > gasleft() is true if and only if // req.gas / 63 > X / 64, or equivalently req.gas > X * 63 / 64. // This means that if the subcall runs out of gas we are able to detect that insufficient gas was passed. //