DeployContract

promiseDocs


near-sdk-js v2.0.0 / promise / DeployContract

Class: DeployContract

A deploy contract promise action.

Extends

Constructors

new DeployContract()

new DeployContract(code): DeployContract

Parameters

code: Uint8Array

The code of the contract to be deployed.

Returns

DeployContract

Overrides

PromiseAction.constructor

Defined in

packages/near-sdk-js/src/promise.ts:38

Properties

code

code: Uint8Array

The code of the contract to be deployed.

Defined in

packages/near-sdk-js/src/promise.ts:38

Methods

add()

add(promiseIndex): void

The method that describes how a promise action adds it's action to the promise batch with the provided index.

Parameters

promiseIndex: PromiseIndex

The index of the promise batch to attach the action to.

Returns

void

Overrides

PromiseAction.add

Defined in

packages/near-sdk-js/src/promise.ts:42

Last updated