From 4a7cd4931c0880688d7e2b112ed16afb9d22b92f Mon Sep 17 00:00:00 2001 From: Vladimir Grichina Date: Tue, 4 Jun 2019 20:14:53 -0700 Subject: [PATCH] Allow passing token amount with scheduled function call --- bin/near | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bin/near b/bin/near index 62e5ad67..5fcf8e0c 100755 --- a/bin/near +++ b/bin/near @@ -30,7 +30,12 @@ const deploy = { const scheduleFunctionCall = { command: 'call [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)) };