From db79177f5bc43052ba1831169a052954360336f0 Mon Sep 17 00:00:00 2001 From: radik878 Date: Thu, 18 Sep 2025 11:20:58 +0300 Subject: [PATCH] docs(ERC2771Forwarder): fix validate signer reference and clarify implicit nonce --- contracts/metatx/ERC2771Forwarder.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/metatx/ERC2771Forwarder.sol b/contracts/metatx/ERC2771Forwarder.sol index 23f4099947b..1bab144bcc1 100644 --- a/contracts/metatx/ERC2771Forwarder.sol +++ b/contracts/metatx/ERC2771Forwarder.sol @@ -19,7 +19,7 @@ import {Errors} from "../utils/Errors.sol"; * * `to`: The address that should be called. * * `value`: The amount of native token to attach with the requested call. * * `gas`: The amount of gas limit that will be forwarded with the requested call. - * * `nonce`: A unique transaction ordering identifier to avoid replayability and request invalidation. + * * `nonce` (implicit): Taken from {Nonces} for `from` and included in the signed typed data. * * `deadline`: A timestamp after which the request is not executable anymore. * * `data`: Encoded `msg.data` to send with the requested call. * @@ -195,7 +195,7 @@ contract ERC2771Forwarder is EIP712, Nonces { /** * @dev Validates if the provided request can be executed at current block timestamp with - * the given `request.signature` on behalf of `request.signer`. + * the given `request.signature` on behalf of `request.from`. */ function _validate( ForwardRequestData calldata request