Skip to content

Commit

Permalink
chore: Fix formatting
Browse files Browse the repository at this point in the history
Fix bullet list formatting
Add `includeBytes` import
  • Loading branch information
petarvujovic98 committed Sep 20, 2022
1 parent 0a9c285 commit 16b3f4d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@ If you want to indicate an error happened and fail the transaction, just throw a

When your JS code or library throws an error, uncaught, the transaction will also fail with GuestPanic error, with the error message and stacktrace.

When call host function with inappropriate type, means incorrect number of arguments or arg is not expected type: - if arguments less than params, remaining argument are set as 'undefined' - if arguments more than params, remaining argument are ignored - if argument is different than the required type, it'll be coerced to required type - if argument is different than the required type but cannot be coerced, will throw runtime type error, also with message and stacktrace
When call host function with inappropriate type, means incorrect number of arguments or arg is not expected type:

- if arguments less than params, remaining argument are set as 'undefined'
- if arguments more than params, remaining argument are ignored
- if argument is different than the required type, it'll be coerced to required type
- if argument is different than the required type but cannot be coerced, will throw runtime type error, also with message and stacktrace

## NEAR-SDK-JS API Reference

Expand Down Expand Up @@ -462,7 +467,7 @@ Usage:

```js
// create new promise
import { NearPromise, near } from "near-sdk-js";
import { NearPromise, near, includeBytes } from "near-sdk-js";
import { PublicKey } from "near-sdk-js/lib/types";

let promise = NearPromise.new("account-to-run-promise");
Expand Down

0 comments on commit 16b3f4d

Please sign in to comment.