Function validateReturn

  • Check whether the sender can return funds controlled by the lock.

    Returns

    true if the sender can return funds controlled by the lock.

    Throws

    If the lock has expired.

    Throws

    If the sender does not have the return capability for a simpleV0 lock controller.

    Throws

    If the source account does not have enough of the token locked in the lock.

    For unknown controller variants, the capability check is skipped.

    Parameters

    • lock: Lock

      The lock to validate against.

    • sender: AccountAddress

      The sender account to validate.

    • details: ReturnDetails

    Returns true

Generated using TypeDoc