Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
enhance error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
softprofe committed Feb 12, 2021
1 parent 116b5ea commit 3d01442
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions programs/cleos/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2241,11 +2241,10 @@ struct activate_subcommand {
data = "[\"" + feature_digest + "\"]";
} else {
std::cout << "Can't find system feature : " << feature_name_str << std::endl;
return;
}
fc::variant action_args_var;
if( !data.empty() ) {
action_args_var = json_from_file_or_string(data, fc::json::parse_type::relaxed_parser);
}
action_args_var = json_from_file_or_string(data, fc::json::parse_type::relaxed_parser);
auto accountPermissions = get_account_permissions(permissions);
send_actions({chain::action{accountPermissions, name(contract_account), name(action),
variant_to_bin( name(contract_account), name(action), action_args_var ) }}, signing_keys_opt.get_keys());
Expand Down

0 comments on commit 3d01442

Please sign in to comment.