Skip to content

Commit

Permalink
link to near-api-js example, don't show code here
Browse files Browse the repository at this point in the history
  • Loading branch information
chadoh committed Aug 6, 2020
1 parent d5bd230 commit a32b680
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/concepts/gas.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,7 @@ Function calls are more complex, and you can attach an explicit amount of gas to

near call myContract.testnet myFunction "{ \"arg1\": \"val1\" }" --gas=300000000000000

And in [`near-api-js`](https://github.com/near/near-api-js), given a `contract` that you've instantiated with `new Contract`, you can attach an explicit gas amount when calling a change method on this contract with:

contract.myFunction({ arg1: 'val1' }, '300000000000000')
And in [`near-api-js`](https://github.com/near/near-api-js), you can also specify an explicit amount of gas units to attach when calling a change method; see [example here](https://github.com/near-examples/guest-book/blob/ceb2a39e53351b4ffc21d01987e2b0b21d633fa7/src/App.js#L29).


## Attach extra gas; get refunded!
Expand Down

0 comments on commit a32b680

Please sign in to comment.