Fraction Protocolhelperserc2771Facet

ERC2771RecipientFacet

This Facet provides compatibility with OpenGSN IERC2771Recipient and a getter for designated trustedForwarder.

We don't implement IERC2771Recipient here because we don't need _msgSender() and _msgData() functions in this facet.

trustedForwarder

function trustedForwarder() public view virtual returns (address)

Retrieves the address of the trusted forwarder contract.

Return Values

NameTypeDescription
[0]addressaddress The address of the forwarder that is being used.

isTrustedForwarder

function isTrustedForwarder(address forwarder) public view virtual returns (bool)

Checks if the given address is the trusted forwarder.

Parameters

NameTypeDescription
forwarderaddressThe address to verify.

Return Values

NameTypeDescription
[0]boolbool true if the given address is the address of the trusted forwarder, false if not.

On this page