Expand description
Helper methods that often used in smart contracts.
Functions§
- Assert that 1 yoctoNEAR was attached.
- Assert that predecessor_account_id == current_account_id, meaning contract called itself.
- Returns true if promise was successful. Fails if called outside a callback that received 1 promise result.
- Returns the result of the promise if successful. Otherwise returns None. Fails if called outside a callback that received 1 promise result.