Skip to content

Commit

Permalink
Renamed method call commands to call and view
Browse files Browse the repository at this point in the history
  • Loading branch information
vgrichina committed May 22, 2019
1 parent 3569915 commit 7d68d6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/near
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ const deploy = {
};

const scheduleFunctionCall = {
command: 'schedule_function_call <contractName> <methodName> [args]',
command: 'call <contractName> <methodName> [args]',
desc: 'schedule smart contract call which can modify state',
builder: (yargs) => yargs,
handler: (argv) => exitOnError(main.scheduleFunctionCall(argv))
};

const callViewFunction = {
command: 'call_view_function <contractName> <methodName> [args]',
command: 'view <contractName> <methodName> [args]',
desc: 'make smart contract call which can view state',
builder: (yargs) => yargs,
handler: (argv) => exitOnError(main.callViewFunction(argv))
Expand Down

0 comments on commit 7d68d6e

Please sign in to comment.