validateContract

cli/utilsDocs


near-sdk-js v2.0.0 / cli/utils / validateContract

Function: validateContract()

validateContract(contractPath, verbose): Promise<boolean>

Validates the contract by checking that all parameters are initialized in the constructor. Works only for contracts written in TypeScript.

Parameters

contractPath: string

Path to the contract.

verbose: boolean = false

Whether to print verbose output.

Returns

Promise<boolean>

Defined in

packages/near-sdk-js/src/cli/utils.ts:62

Last updated