跳到主要内容

supportsInterface

Contract: JBV1TokenPaymentTerminal​‌

Interface: IERC165

Indicates if this contract adheres to the specified interface.

See {IERC165-supportsInterface}.

Definition

function supportsInterface(bytes4 _interfaceId)
public
view
virtual
override(ERC165, IERC165)
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(IJBPaymentTerminal).interfaceId ||
    _interfaceId == type(IJBV1TokenPaymentTerminal).interfaceId ||
    super.supportsInterface(_interfaceId);