Skip to content

Readme has confusing example usage of validateFulfillment #59

@clark800

Description

@clark800

The following snippet found in a few places in the readme makes it look like validateFulfillment returns a boolean to indicate validation whereas it actually throws an error for invalid fulfillments.

const validationResult = cc.validateFulfillment(fulfillment, condition)
// validationResult === true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions