Skip to main content

supportsInterface

Contract: JBETHERC20SplitsPayer

Interface: IERC165

Indicates if this contract adheres to the specified interface.

See {IERC165-supportsInterface}.

Definition​

function supportsInterface(bytes4 _interfaceId)
public
view
virtual
override(IERC165, ERC721)
returns (bool) { ... }
  • Arguments:
    • _interfaceId is the ID of the interface to check for adherance to.
  • The view function can be accessed externally by anyone, and internally within this contract.
  • The view function does not alter state on the blockchain.
  • The function overrides a function definition from the IERC165 interface.
  • The function returns a flag indicating if this contract adheres to the specified interface.

Body​

  1. Return true if the provided interface ID is in the list of interfaces this contract adheres to.

    return
    _interfaceId == type(IJBProjects).interfaceId ||
    _interfaceId == type(IJBOperatable).interfaceId ||
    super.supportsInterface(_interfaceId);