|
|
|
@ -57,7 +57,7 @@ contract MinimalForwarder is EIP712 { |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
// Validate that the relayer has sent enough gas for the call. |
|
|
|
|
// See https://ronan.eth.link/blog/ethereum-gas-dangers/ |
|
|
|
|
// See https://ronan.eth.limo/blog/ethereum-gas-dangers/ |
|
|
|
|
if (gasleft() <= req.gas / 63) { |
|
|
|
|
// We explicitly trigger invalid opcode to consume all gas and bubble-up the effects, since |
|
|
|
|
// neither revert or assert consume all gas since Solidity 0.8.0 |
|
|
|
|