Skip to content

Commit

Permalink
Update contracts/metatx/ERC2771Forwarder.sol
Browse files Browse the repository at this point in the history
Co-authored-by: Hadrien Croubois <[email protected]>
  • Loading branch information
ernestognw and Amxx authored Jan 10, 2025
1 parent bcb02ff commit 93bc05a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions contracts/metatx/ERC2771Forwarder.sol
Original file line number Diff line number Diff line change
Expand Up @@ -303,9 +303,8 @@ contract ERC2771Forwarder is EIP712, Nonces {
* This function performs a static call to the target contract calling the
* {ERC2771Context-isTrustedForwarder} function.
*
* NOTE: Consider the execution of this forwarder is permissionless. Without
* this check, users may approve token spending to this contract allowing
* any relayer to transfer their tokens.
* NOTE: Consider the execution of this forwarder is permissionless. Without this check, anyone may transfer assets
* that are owned by, or are approved to this forwarder.
*/
function _isTrustedByTarget(address target) internal view virtual returns (bool) {
bytes memory encodedParams = abi.encodeCall(ERC2771Context.isTrustedForwarder, (address(this)));
Expand Down

0 comments on commit 93bc05a

Please sign in to comment.