promise • Docs
near-sdk-js v2.0.0 / promise / DeployContract
A deploy contract promise action.
PromiseAction
new DeployContract(code): DeployContract
code
DeployContract
Parameters
• code: Uint8Array
Uint8Array
The code of the contract to be deployed.
Returns
Overrides
PromiseAction.constructor
constructor
Defined in
packages/near-sdk-js/src/promise.ts:38arrow-up-right
code: Uint8Array
add(promiseIndex): void
promiseIndex
void
The method that describes how a promise action adds it's action to the promise batch with the provided index.
• promiseIndex: PromiseIndex
PromiseIndex
The index of the promise batch to attach the action to.
PromiseAction.add
add
packages/near-sdk-js/src/promise.ts:42arrow-up-right
Last updated 1 year ago