跳到主要内容

isTerminalOf

Contract: JBPayoutRedemptionPaymentTerminal​‌

A modifier that verifies this terminal is a terminal of provided project ID.

Definition

modifier isTerminalOf(uint256 _projectId) { ... }
  • Arguments:
    • _projectId is the ID of the project to check.

Body

  1. Make sure this terminal is a terminal of the specified project.

    if (!directory.isTerminalOf(_projectId, this)) revert PROJECT_TERMINAL_MISMATCH();

    Internal references:

    External references:

  2. Continue the rest of the function.

    _;