From a9d46b9b8c0f6af680fc7cacff25fd35ad9bb1b8 Mon Sep 17 00:00:00 2001 From: Anton Perkov Date: Thu, 31 May 2018 16:39:29 -0400 Subject: [PATCH] cleos newaccount : bugfix #3684 --- programs/cleos/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/cleos/main.cpp b/programs/cleos/main.cpp index 769473366..30417064a 100644 --- a/programs/cleos/main.cpp +++ b/programs/cleos/main.cpp @@ -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 ( net.get_amount() == 0 && cpu.get_amount() == 0 ) { + 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 { -- GitLab