@blockchaincommons/envelope - v1.0.0-beta.4
    Preparing search index...

    Function expectAttachment

    • Finds a single attachment matching the given vendor and conformsTo.

      Unlike attachments which returns an array, this method requires exactly one attachment to match.

      Parameters

      Returns Envelope

      The matching attachment envelope

      EnvelopeError if not exactly one attachment matches