Skip to content

Commit

Permalink
Merge pull request #86 from near/idea404-js-call-patch
Browse files Browse the repository at this point in the history
Update README.md Bash Example to Fix for Missing accountId
  • Loading branch information
idea404 authored Jun 7, 2022
2 parents dccb7e2 + 300ef2b commit b600241
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ near js deploy --accountId <your-account> --base64File build/<contract-name>.bas
5. Interact with your contract using NEAR CLI or `near-api-js`. Encode the parameters and call. If the call cause the state increasement, you also need to attach NEAR to cover the storage deposit for the delta.

```sh
near js call <your-account> <method-name> --args <args> --deposit 0.1 --jsvm <jsvm-account>
near js call <account-that-deployed-js-contract-to-jsvm> <method-name> --accountId <account-performing-call> --args <args> --deposit 0.1 --jsvm <jsvm-account>
```

6. If you want to remove the js contract and withdraw the storage deposit, use:
Expand Down

0 comments on commit b600241

Please sign in to comment.