Skip to content

Commit ec0ec42

Browse files
authored
docs(ERC2771Forwarder): fix validate signer reference and clarify implicit nonce (#5938)
1 parent 785974f commit ec0ec42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contracts/metatx/ERC2771Forwarder.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import {Errors} from "../utils/Errors.sol";
1919
* * `to`: The address that should be called.
2020
* * `value`: The amount of native token to attach with the requested call.
2121
* * `gas`: The amount of gas limit that will be forwarded with the requested call.
22-
* * `nonce`: A unique transaction ordering identifier to avoid replayability and request invalidation.
22+
* * `nonce` (implicit): Taken from {Nonces} for `from` and included in the signed typed data.
2323
* * `deadline`: A timestamp after which the request is not executable anymore.
2424
* * `data`: Encoded `msg.data` to send with the requested call.
2525
*
@@ -195,7 +195,7 @@ contract ERC2771Forwarder is EIP712, Nonces {
195195

196196
/**
197197
* @dev Validates if the provided request can be executed at current block timestamp with
198-
* the given `request.signature` on behalf of `request.signer`.
198+
* the given `request.signature` on behalf of `request.from`.
199199
*/
200200
function _validate(
201201
ForwardRequestData calldata request

0 commit comments

Comments
 (0)