Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
Allow passing token amount with scheduled function call
Browse files Browse the repository at this point in the history
  • Loading branch information
vgrichina committed Jun 5, 2019
1 parent 6e8361c commit 4a7cd49
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bin/near
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ const deploy = {
const scheduleFunctionCall = {
command: 'call <contractName> <methodName> [args]',
desc: 'schedule smart contract call which can modify state',
builder: (yargs) => yargs,
builder: (yargs) => yargs
.option('amount', {
desc: 'Number of tokens to attach',
type: 'string',
default: '1000000000'
}),
handler: (argv) => exitOnError(main.scheduleFunctionCall(argv))
};

Expand Down

0 comments on commit 4a7cd49

Please sign in to comment.