near / near-cli

General purpose command line tools for interacting with NEAR Protocol
https://docs.near.org
MIT License
195 stars 94 forks source link

feat: Make --accountId optional for js call #984

Closed ChaoticTempest closed 2 years ago

ChaoticTempest commented 2 years ago

Optional convenience change for near js call. This will not require the user to specify the --accountId option if they wish to use the same id as the contractId.

So before, we'd have:

near js call contract-id function-name --args <args> --accountId contract-id

Now, we can just do:

near js call contract-id function-name --args <args>