metatx.adoc 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372
  1. :github-icon: pass:[<svg class="icon"><use href="#github-icon"/></svg>]
  2. :xref-ERC2771Context-constructor-address-: xref:metatx.adoc#ERC2771Context-constructor-address-
  3. :xref-ERC2771Context-trustedForwarder--: xref:metatx.adoc#ERC2771Context-trustedForwarder--
  4. :xref-ERC2771Context-isTrustedForwarder-address-: xref:metatx.adoc#ERC2771Context-isTrustedForwarder-address-
  5. :xref-ERC2771Context-_msgSender--: xref:metatx.adoc#ERC2771Context-_msgSender--
  6. :xref-ERC2771Context-_msgData--: xref:metatx.adoc#ERC2771Context-_msgData--
  7. :xref-ERC2771Context-_contextSuffixLength--: xref:metatx.adoc#ERC2771Context-_contextSuffixLength--
  8. :ERC2771Context: pass:normal[xref:metatx.adoc#ERC2771Context[`ERC2771Context`]]
  9. :xref-ERC2771Forwarder-constructor-string-: xref:metatx.adoc#ERC2771Forwarder-constructor-string-
  10. :xref-ERC2771Forwarder-verify-struct-ERC2771Forwarder-ForwardRequestData-: xref:metatx.adoc#ERC2771Forwarder-verify-struct-ERC2771Forwarder-ForwardRequestData-
  11. :xref-ERC2771Forwarder-execute-struct-ERC2771Forwarder-ForwardRequestData-: xref:metatx.adoc#ERC2771Forwarder-execute-struct-ERC2771Forwarder-ForwardRequestData-
  12. :xref-ERC2771Forwarder-executeBatch-struct-ERC2771Forwarder-ForwardRequestData---address-payable-: xref:metatx.adoc#ERC2771Forwarder-executeBatch-struct-ERC2771Forwarder-ForwardRequestData---address-payable-
  13. :xref-ERC2771Forwarder-_validate-struct-ERC2771Forwarder-ForwardRequestData-: xref:metatx.adoc#ERC2771Forwarder-_validate-struct-ERC2771Forwarder-ForwardRequestData-
  14. :xref-ERC2771Forwarder-_recoverForwardRequestSigner-struct-ERC2771Forwarder-ForwardRequestData-: xref:metatx.adoc#ERC2771Forwarder-_recoverForwardRequestSigner-struct-ERC2771Forwarder-ForwardRequestData-
  15. :xref-ERC2771Forwarder-_execute-struct-ERC2771Forwarder-ForwardRequestData-bool-: xref:metatx.adoc#ERC2771Forwarder-_execute-struct-ERC2771Forwarder-ForwardRequestData-bool-
  16. :xref-Nonces-nonces-address-: xref:utils.adoc#Nonces-nonces-address-
  17. :xref-Nonces-_useNonce-address-: xref:utils.adoc#Nonces-_useNonce-address-
  18. :xref-Nonces-_useCheckedNonce-address-uint256-: xref:utils.adoc#Nonces-_useCheckedNonce-address-uint256-
  19. :xref-EIP712-_domainSeparatorV4--: xref:utils.adoc#EIP712-_domainSeparatorV4--
  20. :xref-EIP712-_hashTypedDataV4-bytes32-: xref:utils.adoc#EIP712-_hashTypedDataV4-bytes32-
  21. :xref-EIP712-eip712Domain--: xref:utils.adoc#EIP712-eip712Domain--
  22. :xref-EIP712-_EIP712Name--: xref:utils.adoc#EIP712-_EIP712Name--
  23. :xref-EIP712-_EIP712Version--: xref:utils.adoc#EIP712-_EIP712Version--
  24. :xref-ERC2771Forwarder-ExecutedForwardRequest-address-uint256-bool-: xref:metatx.adoc#ERC2771Forwarder-ExecutedForwardRequest-address-uint256-bool-
  25. :xref-IERC5267-EIP712DomainChanged--: xref:interfaces.adoc#IERC5267-EIP712DomainChanged--
  26. :xref-ERC2771Forwarder-ERC2771ForwarderInvalidSigner-address-address-: xref:metatx.adoc#ERC2771Forwarder-ERC2771ForwarderInvalidSigner-address-address-
  27. :xref-ERC2771Forwarder-ERC2771ForwarderMismatchedValue-uint256-uint256-: xref:metatx.adoc#ERC2771Forwarder-ERC2771ForwarderMismatchedValue-uint256-uint256-
  28. :xref-ERC2771Forwarder-ERC2771ForwarderExpiredRequest-uint48-: xref:metatx.adoc#ERC2771Forwarder-ERC2771ForwarderExpiredRequest-uint48-
  29. :xref-ERC2771Forwarder-ERC2771UntrustfulTarget-address-address-: xref:metatx.adoc#ERC2771Forwarder-ERC2771UntrustfulTarget-address-address-
  30. :xref-Nonces-InvalidAccountNonce-address-uint256-: xref:utils.adoc#Nonces-InvalidAccountNonce-address-uint256-
  31. :EIP712-constructor: pass:normal[xref:utils.adoc#EIP712-constructor-string-string-[`EIP712.constructor`]]
  32. :ECDSA-tryRecover: pass:normal[xref:utils.adoc#ECDSA-tryRecover-bytes32-uint8-bytes32-bytes32-[`ECDSA.tryRecover`]]
  33. = Meta Transactions
  34. [.readme-notice]
  35. NOTE: This document is better viewed at https://docs.openzeppelin.com/contracts/api/metatx
  36. == Core
  37. :constructor: pass:normal[xref:#ERC2771Context-constructor-address-[`++constructor++`]]
  38. :trustedForwarder: pass:normal[xref:#ERC2771Context-trustedForwarder--[`++trustedForwarder++`]]
  39. :isTrustedForwarder: pass:normal[xref:#ERC2771Context-isTrustedForwarder-address-[`++isTrustedForwarder++`]]
  40. :_msgSender: pass:normal[xref:#ERC2771Context-_msgSender--[`++_msgSender++`]]
  41. :_msgData: pass:normal[xref:#ERC2771Context-_msgData--[`++_msgData++`]]
  42. :_contextSuffixLength: pass:normal[xref:#ERC2771Context-_contextSuffixLength--[`++_contextSuffixLength++`]]
  43. [.contract]
  44. [[ERC2771Context]]
  45. === `++ERC2771Context++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.0.0/contracts/metatx/ERC2771Context.sol[{github-icon},role=heading-link]
  46. [.hljs-theme-light.nopadding]
  47. ```solidity
  48. import "@openzeppelin/contracts/metatx/ERC2771Context.sol";
  49. ```
  50. Context variant with ERC2771 support.
  51. WARNING: Avoid using this pattern in contracts that rely in a specific calldata length as they'll
  52. be affected by any forwarder whose `msg.data` is suffixed with the `from` address according to the ERC2771
  53. specification adding the address size in bytes (20) to the calldata size. An example of an unexpected
  54. behavior could be an unintended fallback (or another function) invocation while trying to invoke the `receive`
  55. function only accessible if `msg.data.length == 0`.
  56. WARNING: The usage of `delegatecall` in this contract is dangerous and may result in context corruption.
  57. Any forwarded request to this contract triggering a `delegatecall` to itself will result in an invalid {_msgSender}
  58. recovery.
  59. [.contract-index]
  60. .Functions
  61. --
  62. * {xref-ERC2771Context-constructor-address-}[`++constructor(trustedForwarder_)++`]
  63. * {xref-ERC2771Context-trustedForwarder--}[`++trustedForwarder()++`]
  64. * {xref-ERC2771Context-isTrustedForwarder-address-}[`++isTrustedForwarder(forwarder)++`]
  65. * {xref-ERC2771Context-_msgSender--}[`++_msgSender()++`]
  66. * {xref-ERC2771Context-_msgData--}[`++_msgData()++`]
  67. * {xref-ERC2771Context-_contextSuffixLength--}[`++_contextSuffixLength()++`]
  68. --
  69. [.contract-item]
  70. [[ERC2771Context-constructor-address-]]
  71. ==== `[.contract-item-name]#++constructor++#++(address trustedForwarder_)++` [.item-kind]#internal#
  72. [.contract-item]
  73. [[ERC2771Context-trustedForwarder--]]
  74. ==== `[.contract-item-name]#++trustedForwarder++#++() → address++` [.item-kind]#public#
  75. Returns the address of the trusted forwarder.
  76. [.contract-item]
  77. [[ERC2771Context-isTrustedForwarder-address-]]
  78. ==== `[.contract-item-name]#++isTrustedForwarder++#++(address forwarder) → bool++` [.item-kind]#public#
  79. Indicates whether any particular address is the trusted forwarder.
  80. [.contract-item]
  81. [[ERC2771Context-_msgSender--]]
  82. ==== `[.contract-item-name]#++_msgSender++#++() → address++` [.item-kind]#internal#
  83. Override for `msg.sender`. Defaults to the original `msg.sender` whenever
  84. a call is not performed by the trusted forwarder or the calldata length is less than
  85. 20 bytes (an address length).
  86. [.contract-item]
  87. [[ERC2771Context-_msgData--]]
  88. ==== `[.contract-item-name]#++_msgData++#++() → bytes++` [.item-kind]#internal#
  89. Override for `msg.data`. Defaults to the original `msg.data` whenever
  90. a call is not performed by the trusted forwarder or the calldata length is less than
  91. 20 bytes (an address length).
  92. [.contract-item]
  93. [[ERC2771Context-_contextSuffixLength--]]
  94. ==== `[.contract-item-name]#++_contextSuffixLength++#++() → uint256++` [.item-kind]#internal#
  95. ERC-2771 specifies the context as being a single address (20 bytes).
  96. == Utils
  97. :ForwardRequestData: pass:normal[xref:#ERC2771Forwarder-ForwardRequestData[`++ForwardRequestData++`]]
  98. :_FORWARD_REQUEST_TYPEHASH: pass:normal[xref:#ERC2771Forwarder-_FORWARD_REQUEST_TYPEHASH-bytes32[`++_FORWARD_REQUEST_TYPEHASH++`]]
  99. :ExecutedForwardRequest: pass:normal[xref:#ERC2771Forwarder-ExecutedForwardRequest-address-uint256-bool-[`++ExecutedForwardRequest++`]]
  100. :ERC2771ForwarderInvalidSigner: pass:normal[xref:#ERC2771Forwarder-ERC2771ForwarderInvalidSigner-address-address-[`++ERC2771ForwarderInvalidSigner++`]]
  101. :ERC2771ForwarderMismatchedValue: pass:normal[xref:#ERC2771Forwarder-ERC2771ForwarderMismatchedValue-uint256-uint256-[`++ERC2771ForwarderMismatchedValue++`]]
  102. :ERC2771ForwarderExpiredRequest: pass:normal[xref:#ERC2771Forwarder-ERC2771ForwarderExpiredRequest-uint48-[`++ERC2771ForwarderExpiredRequest++`]]
  103. :ERC2771UntrustfulTarget: pass:normal[xref:#ERC2771Forwarder-ERC2771UntrustfulTarget-address-address-[`++ERC2771UntrustfulTarget++`]]
  104. :constructor: pass:normal[xref:#ERC2771Forwarder-constructor-string-[`++constructor++`]]
  105. :verify: pass:normal[xref:#ERC2771Forwarder-verify-struct-ERC2771Forwarder-ForwardRequestData-[`++verify++`]]
  106. :execute: pass:normal[xref:#ERC2771Forwarder-execute-struct-ERC2771Forwarder-ForwardRequestData-[`++execute++`]]
  107. :executeBatch: pass:normal[xref:#ERC2771Forwarder-executeBatch-struct-ERC2771Forwarder-ForwardRequestData---address-payable-[`++executeBatch++`]]
  108. :_validate: pass:normal[xref:#ERC2771Forwarder-_validate-struct-ERC2771Forwarder-ForwardRequestData-[`++_validate++`]]
  109. :_recoverForwardRequestSigner: pass:normal[xref:#ERC2771Forwarder-_recoverForwardRequestSigner-struct-ERC2771Forwarder-ForwardRequestData-[`++_recoverForwardRequestSigner++`]]
  110. :_execute: pass:normal[xref:#ERC2771Forwarder-_execute-struct-ERC2771Forwarder-ForwardRequestData-bool-[`++_execute++`]]
  111. [.contract]
  112. [[ERC2771Forwarder]]
  113. === `++ERC2771Forwarder++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.0.0/contracts/metatx/ERC2771Forwarder.sol[{github-icon},role=heading-link]
  114. [.hljs-theme-light.nopadding]
  115. ```solidity
  116. import "@openzeppelin/contracts/metatx/ERC2771Forwarder.sol";
  117. ```
  118. A forwarder compatible with ERC2771 contracts. See {ERC2771Context}.
  119. This forwarder operates on forward requests that include:
  120. * `from`: An address to operate on behalf of. It is required to be equal to the request signer.
  121. * `to`: The address that should be called.
  122. * `value`: The amount of native token to attach with the requested call.
  123. * `gas`: The amount of gas limit that will be forwarded with the requested call.
  124. * `nonce`: A unique transaction ordering identifier to avoid replayability and request invalidation.
  125. * `deadline`: A timestamp after which the request is not executable anymore.
  126. * `data`: Encoded `msg.data` to send with the requested call.
  127. Relayers are able to submit batches if they are processing a high volume of requests. With high
  128. throughput, relayers may run into limitations of the chain such as limits on the number of
  129. transactions in the mempool. In these cases the recommendation is to distribute the load among
  130. multiple accounts.
  131. NOTE: Batching requests includes an optional refund for unused `msg.value` that is achieved by
  132. performing a call with empty calldata. While this is within the bounds of ERC-2771 compliance,
  133. if the refund receiver happens to consider the forwarder a trusted forwarder, it MUST properly
  134. handle `msg.data.length == 0`. `ERC2771Context` in OpenZeppelin Contracts versions prior to 4.9.3
  135. do not handle this properly.
  136. ==== Security Considerations
  137. If a relayer submits a forward request, it should be willing to pay up to 100% of the gas amount
  138. specified in the request. This contract does not implement any kind of retribution for this gas,
  139. and it is assumed that there is an out of band incentive for relayers to pay for execution on
  140. behalf of signers. Often, the relayer is operated by a project that will consider it a user
  141. acquisition cost.
  142. By offering to pay for gas, relayers are at risk of having that gas used by an attacker toward
  143. some other purpose that is not aligned with the expected out of band incentives. If you operate a
  144. relayer, consider whitelisting target contracts and function selectors. When relaying ERC-721 or
  145. ERC-1155 transfers specifically, consider rejecting the use of the `data` field, since it can be
  146. used to execute arbitrary code.
  147. [.contract-index]
  148. .Functions
  149. --
  150. * {xref-ERC2771Forwarder-constructor-string-}[`++constructor(name)++`]
  151. * {xref-ERC2771Forwarder-verify-struct-ERC2771Forwarder-ForwardRequestData-}[`++verify(request)++`]
  152. * {xref-ERC2771Forwarder-execute-struct-ERC2771Forwarder-ForwardRequestData-}[`++execute(request)++`]
  153. * {xref-ERC2771Forwarder-executeBatch-struct-ERC2771Forwarder-ForwardRequestData---address-payable-}[`++executeBatch(requests, refundReceiver)++`]
  154. * {xref-ERC2771Forwarder-_validate-struct-ERC2771Forwarder-ForwardRequestData-}[`++_validate(request)++`]
  155. * {xref-ERC2771Forwarder-_recoverForwardRequestSigner-struct-ERC2771Forwarder-ForwardRequestData-}[`++_recoverForwardRequestSigner(request)++`]
  156. * {xref-ERC2771Forwarder-_execute-struct-ERC2771Forwarder-ForwardRequestData-bool-}[`++_execute(request, requireValidRequest)++`]
  157. [.contract-subindex-inherited]
  158. .Nonces
  159. * {xref-Nonces-nonces-address-}[`++nonces(owner)++`]
  160. * {xref-Nonces-_useNonce-address-}[`++_useNonce(owner)++`]
  161. * {xref-Nonces-_useCheckedNonce-address-uint256-}[`++_useCheckedNonce(owner, nonce)++`]
  162. [.contract-subindex-inherited]
  163. .EIP712
  164. * {xref-EIP712-_domainSeparatorV4--}[`++_domainSeparatorV4()++`]
  165. * {xref-EIP712-_hashTypedDataV4-bytes32-}[`++_hashTypedDataV4(structHash)++`]
  166. * {xref-EIP712-eip712Domain--}[`++eip712Domain()++`]
  167. * {xref-EIP712-_EIP712Name--}[`++_EIP712Name()++`]
  168. * {xref-EIP712-_EIP712Version--}[`++_EIP712Version()++`]
  169. [.contract-subindex-inherited]
  170. .IERC5267
  171. --
  172. [.contract-index]
  173. .Events
  174. --
  175. * {xref-ERC2771Forwarder-ExecutedForwardRequest-address-uint256-bool-}[`++ExecutedForwardRequest(signer, nonce, success)++`]
  176. [.contract-subindex-inherited]
  177. .Nonces
  178. [.contract-subindex-inherited]
  179. .EIP712
  180. [.contract-subindex-inherited]
  181. .IERC5267
  182. * {xref-IERC5267-EIP712DomainChanged--}[`++EIP712DomainChanged()++`]
  183. --
  184. [.contract-index]
  185. .Errors
  186. --
  187. * {xref-ERC2771Forwarder-ERC2771ForwarderInvalidSigner-address-address-}[`++ERC2771ForwarderInvalidSigner(signer, from)++`]
  188. * {xref-ERC2771Forwarder-ERC2771ForwarderMismatchedValue-uint256-uint256-}[`++ERC2771ForwarderMismatchedValue(requestedValue, msgValue)++`]
  189. * {xref-ERC2771Forwarder-ERC2771ForwarderExpiredRequest-uint48-}[`++ERC2771ForwarderExpiredRequest(deadline)++`]
  190. * {xref-ERC2771Forwarder-ERC2771UntrustfulTarget-address-address-}[`++ERC2771UntrustfulTarget(target, forwarder)++`]
  191. [.contract-subindex-inherited]
  192. .Nonces
  193. * {xref-Nonces-InvalidAccountNonce-address-uint256-}[`++InvalidAccountNonce(account, currentNonce)++`]
  194. [.contract-subindex-inherited]
  195. .EIP712
  196. [.contract-subindex-inherited]
  197. .IERC5267
  198. --
  199. [.contract-item]
  200. [[ERC2771Forwarder-constructor-string-]]
  201. ==== `[.contract-item-name]#++constructor++#++(string name)++` [.item-kind]#public#
  202. See {EIP712-constructor}.
  203. [.contract-item]
  204. [[ERC2771Forwarder-verify-struct-ERC2771Forwarder-ForwardRequestData-]]
  205. ==== `[.contract-item-name]#++verify++#++(struct ERC2771Forwarder.ForwardRequestData request) → bool++` [.item-kind]#public#
  206. Returns `true` if a request is valid for a provided `signature` at the current block timestamp.
  207. A transaction is considered valid when the target trusts this forwarder, the request hasn't expired
  208. (deadline is not met), and the signer matches the `from` parameter of the signed request.
  209. NOTE: A request may return false here but it won't cause {executeBatch} to revert if a refund
  210. receiver is provided.
  211. [.contract-item]
  212. [[ERC2771Forwarder-execute-struct-ERC2771Forwarder-ForwardRequestData-]]
  213. ==== `[.contract-item-name]#++execute++#++(struct ERC2771Forwarder.ForwardRequestData request)++` [.item-kind]#public#
  214. Executes a `request` on behalf of `signature`'s signer using the ERC-2771 protocol. The gas
  215. provided to the requested call may not be exactly the amount requested, but the call will not run
  216. out of gas. Will revert if the request is invalid or the call reverts, in this case the nonce is not consumed.
  217. Requirements:
  218. - The request value should be equal to the provided `msg.value`.
  219. - The request should be valid according to {verify}.
  220. [.contract-item]
  221. [[ERC2771Forwarder-executeBatch-struct-ERC2771Forwarder-ForwardRequestData---address-payable-]]
  222. ==== `[.contract-item-name]#++executeBatch++#++(struct ERC2771Forwarder.ForwardRequestData[] requests, address payable refundReceiver)++` [.item-kind]#public#
  223. Batch version of {execute} with optional refunding and atomic execution.
  224. In case a batch contains at least one invalid request (see {verify}), the
  225. request will be skipped and the `refundReceiver` parameter will receive back the
  226. unused requested value at the end of the execution. This is done to prevent reverting
  227. the entire batch when a request is invalid or has already been submitted.
  228. If the `refundReceiver` is the `address(0)`, this function will revert when at least
  229. one of the requests was not valid instead of skipping it. This could be useful if
  230. a batch is required to get executed atomically (at least at the top-level). For example,
  231. refunding (and thus atomicity) can be opt-out if the relayer is using a service that avoids
  232. including reverted transactions.
  233. Requirements:
  234. - The sum of the requests' values should be equal to the provided `msg.value`.
  235. - All of the requests should be valid (see {verify}) when `refundReceiver` is the zero address.
  236. NOTE: Setting a zero `refundReceiver` guarantees an all-or-nothing requests execution only for
  237. the first-level forwarded calls. In case a forwarded request calls to a contract with another
  238. subcall, the second-level call may revert without the top-level call reverting.
  239. [.contract-item]
  240. [[ERC2771Forwarder-_validate-struct-ERC2771Forwarder-ForwardRequestData-]]
  241. ==== `[.contract-item-name]#++_validate++#++(struct ERC2771Forwarder.ForwardRequestData request) → bool isTrustedForwarder, bool active, bool signerMatch, address signer++` [.item-kind]#internal#
  242. Validates if the provided request can be executed at current block timestamp with
  243. the given `request.signature` on behalf of `request.signer`.
  244. [.contract-item]
  245. [[ERC2771Forwarder-_recoverForwardRequestSigner-struct-ERC2771Forwarder-ForwardRequestData-]]
  246. ==== `[.contract-item-name]#++_recoverForwardRequestSigner++#++(struct ERC2771Forwarder.ForwardRequestData request) → bool, address++` [.item-kind]#internal#
  247. Returns a tuple with the recovered the signer of an EIP712 forward request message hash
  248. and a boolean indicating if the signature is valid.
  249. NOTE: The signature is considered valid if {ECDSA-tryRecover} indicates no recover error for it.
  250. [.contract-item]
  251. [[ERC2771Forwarder-_execute-struct-ERC2771Forwarder-ForwardRequestData-bool-]]
  252. ==== `[.contract-item-name]#++_execute++#++(struct ERC2771Forwarder.ForwardRequestData request, bool requireValidRequest) → bool success++` [.item-kind]#internal#
  253. Validates and executes a signed request returning the request call `success` value.
  254. Internal function without msg.value validation.
  255. Requirements:
  256. - The caller must have provided enough gas to forward with the call.
  257. - The request must be valid (see {verify}) if the `requireValidRequest` is true.
  258. Emits an {ExecutedForwardRequest} event.
  259. IMPORTANT: Using this function doesn't check that all the `msg.value` was sent, potentially
  260. leaving value stuck in the contract.
  261. [.contract-item]
  262. [[ERC2771Forwarder-ExecutedForwardRequest-address-uint256-bool-]]
  263. ==== `[.contract-item-name]#++ExecutedForwardRequest++#++(address indexed signer, uint256 nonce, bool success)++` [.item-kind]#event#
  264. Emitted when a `ForwardRequest` is executed.
  265. NOTE: An unsuccessful forward request could be due to an invalid signature, an expired deadline,
  266. or simply a revert in the requested call. The contract guarantees that the relayer is not able to force
  267. the requested call to run out of gas.
  268. [.contract-item]
  269. [[ERC2771Forwarder-ERC2771ForwarderInvalidSigner-address-address-]]
  270. ==== `[.contract-item-name]#++ERC2771ForwarderInvalidSigner++#++(address signer, address from)++` [.item-kind]#error#
  271. The request `from` doesn't match with the recovered `signer`.
  272. [.contract-item]
  273. [[ERC2771Forwarder-ERC2771ForwarderMismatchedValue-uint256-uint256-]]
  274. ==== `[.contract-item-name]#++ERC2771ForwarderMismatchedValue++#++(uint256 requestedValue, uint256 msgValue)++` [.item-kind]#error#
  275. The `requestedValue` doesn't match with the available `msgValue`.
  276. [.contract-item]
  277. [[ERC2771Forwarder-ERC2771ForwarderExpiredRequest-uint48-]]
  278. ==== `[.contract-item-name]#++ERC2771ForwarderExpiredRequest++#++(uint48 deadline)++` [.item-kind]#error#
  279. The request `deadline` has expired.
  280. [.contract-item]
  281. [[ERC2771Forwarder-ERC2771UntrustfulTarget-address-address-]]
  282. ==== `[.contract-item-name]#++ERC2771UntrustfulTarget++#++(address target, address forwarder)++` [.item-kind]#error#
  283. The request target doesn't trust the `forwarder`.