Client: argument is now optional with no default in a transfer operation
This commit is contained in:
parent
5696105d14
commit
cf7de5cc75
@ -89,11 +89,10 @@ let init_arg =
|
|||||||
string_parameter
|
string_parameter
|
||||||
|
|
||||||
let arg_arg =
|
let arg_arg =
|
||||||
default_arg
|
arg
|
||||||
~long:"arg"
|
~long:"arg"
|
||||||
~placeholder:"data"
|
~placeholder:"data"
|
||||||
~doc:"argument passed to the contract's script, if needed"
|
~doc:"argument passed to the contract's script, if needed"
|
||||||
~default:"Unit"
|
|
||||||
string_parameter
|
string_parameter
|
||||||
|
|
||||||
let delegate_arg =
|
let delegate_arg =
|
||||||
|
@ -16,7 +16,7 @@ val init_arg: (string, Proto_alpha.full) Clic.arg
|
|||||||
val fee_arg: (Tez.t, Proto_alpha.full) Clic.arg
|
val fee_arg: (Tez.t, Proto_alpha.full) Clic.arg
|
||||||
val gas_limit_arg: (Z.t option, Proto_alpha.full) Clic.arg
|
val gas_limit_arg: (Z.t option, Proto_alpha.full) Clic.arg
|
||||||
val storage_limit_arg: (Z.t option, Proto_alpha.full) Clic.arg
|
val storage_limit_arg: (Z.t option, Proto_alpha.full) Clic.arg
|
||||||
val arg_arg: (string, Proto_alpha.full) Clic.arg
|
val arg_arg: (string option, Proto_alpha.full) Clic.arg
|
||||||
val source_arg: (string option, Proto_alpha.full) Clic.arg
|
val source_arg: (string option, Proto_alpha.full) Clic.arg
|
||||||
|
|
||||||
val delegate_arg: (Signature.Public_key_hash.t option, Proto_alpha.full) Clic.arg
|
val delegate_arg: (Signature.Public_key_hash.t option, Proto_alpha.full) Clic.arg
|
||||||
|
@ -304,7 +304,7 @@ let commands () =
|
|||||||
transfer cctxt
|
transfer cctxt
|
||||||
~chain:`Main ~block:cctxt#block ?confirmations:cctxt#confirmations
|
~chain:`Main ~block:cctxt#block ?confirmations:cctxt#confirmations
|
||||||
~dry_run
|
~dry_run
|
||||||
~source ~fee ~src_pk ~src_sk ~destination ~arg ~amount ?gas_limit ?storage_limit () >>=
|
~source ~fee ~src_pk ~src_sk ~destination ?arg ~amount ?gas_limit ?storage_limit () >>=
|
||||||
report_michelson_errors ~no_print_source ~msg:"transfer simulation failed" cctxt >>= function
|
report_michelson_errors ~no_print_source ~msg:"transfer simulation failed" cctxt >>= function
|
||||||
| None -> return_unit
|
| None -> return_unit
|
||||||
| Some (_res, _contracts) ->
|
| Some (_res, _contracts) ->
|
||||||
|
Loading…
Reference in New Issue
Block a user