提交 105863e0 编写于 作者: A Anton Perkov

add ' (required)' to required parameter's description in help, microchange in...

add ' (required)' to required parameter's description in help, microchange in cleos newaccount #3684
上级 437eb3c1
......@@ -863,6 +863,7 @@ class Option {
/// Set the option as required
Option *required(bool value = true) {
required_ = value;
description_ += " (required)";
return this;
}
......
......@@ -874,7 +874,7 @@ struct create_account_subcommand {
: create_buyrambytes(creator, account_name, buy_ram_bytes_in_kbytes * 1024);
auto net = to_asset(stake_net);
auto cpu = to_asset(stake_cpu);
if ( 0 < net.get_amount() + cpu.get_amount() ) {
if ( net.get_amount() == 0 && cpu.get_amount() == 0 ) {
action delegate = create_delegate( creator, account_name, net, cpu, transfer);
send_actions( { create, buyram, delegate } );
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册