Options
All
  • Public
  • Public/Protected
  • All
Menu
description

Hierarchy

  • Assertions

Index

Constructors

Methods

  • assertObligatoryFields(obligatory: string[], fields: string[]): void
  • This method asserts the presence of mandatory fields for the execution of a contract. The first argument {@link obligatory} can be used to list the obligatory field names and the second argument {@link fields} must contain the fields present in the JSON payload.

    throws

    {MissingContractFieldError} Given missing one of {@link obligatory} (obligatory fields) in {@link fields}.

    Parameters

    • obligatory: string[]

      An array of obligatory field names.

    • fields: string[]

      An array of fields as presented and to be checked.

    Returns void

Generated using TypeDoc