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

Commit

Permalink
test some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
victorj8 committed Feb 21, 2020
1 parent d94d638 commit 2add476
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions programs/cleos/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ const fc::microseconds abi_serializer_max_time = fc::seconds(10); // No risk to
string tx_ref_block_num_or_id;
bool tx_force_unique = false;
bool tx_dont_broadcast = false;
bool tx_unpack_data = false;
bool tx_return_packed = false;
bool tx_skip_sign = false;
bool tx_print_json = false;
Expand Down Expand Up @@ -207,7 +206,6 @@ void add_standard_transaction_options(CLI::App* cmd, string default_permission =
cmd->add_flag("-j,--json", tx_print_json, localized("Print result as JSON"));
cmd->add_option("--json-file", tx_json_save_file, localized("Save result in JSON format into a file"));
cmd->add_flag("-d,--dont-broadcast", tx_dont_broadcast, localized("Don't broadcast transaction to the network (just print to stdout)"));
cmd->add_flag("-u,--unpack-action-data", tx_unpack_data, localized("Unpack all action data within transaction, needs interaction with ${n}. Used in conjunction with --dont-broadcast.", ("n", node_executable_name)));
cmd->add_flag("--return-packed", tx_return_packed, localized("Used in conjunction with --dont-broadcast to get the packed transaction"));
cmd->add_option("-r,--ref-block", tx_ref_block_num_or_id, (localized("Set the reference block num or block id used for TAPOS (Transaction as Proof-of-Stake)")));
cmd->add_flag("--use-old-rpc", tx_use_old_rpc, localized("Use old RPC push_transaction, rather than new RPC send_transaction"));
Expand Down Expand Up @@ -423,11 +421,11 @@ fc::variant push_transaction( signed_transaction& trx, const std::vector<public_
}
} else {
if (!tx_return_packed) {
if (tx_unpack_data) {
try {
fc::variant unpacked_data_trx;
abi_serializer::to_variant(trx, unpacked_data_trx, abi_serializer_resolver, abi_serializer_max_time);
return unpacked_data_trx;
} else {
} catch (...) {
return fc::variant(trx);
}
} else {
Expand Down

0 comments on commit 2add476

Please sign in to comment.