types/vm_types • Docs
near-sdk-js v2.0.0 / types/vm_types / PromiseResult
A Promise result in near can be one of:
NotReady = 0 - the promise you are specifying is still not ready, not yet failed nor successful.
Successful = 1 - the promise has been successfully executed and you can retrieve the resulting value.
Failed = 2 - the promise execution has failed.
Failed: 2
2
Defined in
packages/near-sdk-js/src/types/vm_types.ts:19arrow-up-right
NotReady: 0
0
packages/near-sdk-js/src/types/vm_types.ts:17arrow-up-right
Successful: 1
1
packages/near-sdk-js/src/types/vm_types.ts:18arrow-up-right
Last updated 1 year ago