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
Retrieves the address of the trusted forwarder contract.
Return Values
Name | Type | Description |
---|---|---|
[0] | address | address The address of the forwarder that is being used. |
isTrustedForwarder
Checks if the given address is the trusted forwarder.
Parameters
Name | Type | Description |
---|---|---|
forwarder | address | The address to verify. |
Return Values
Name | Type | Description |
---|---|---|
[0] | bool | bool true if the given address is the address of the trusted forwarder, false if not. |