Skip to content

Commit

Permalink
GH-1062 mutable_variant_object constructor for variant_object now exp…
Browse files Browse the repository at this point in the history
…licit
  • Loading branch information
heifner committed May 5, 2023
1 parent cb1b52d commit d480a26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions programs/cleos/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1555,7 +1555,7 @@ struct get_transaction_id_subcommand {
// if actions.data & actions.hex_data provided, use the hex_data since only currently support unexploded data
if( vo.contains("actions") ) {
if( vo["actions"].is_array() ) {
fc::mutable_variant_object mvo = vo;
fc::mutable_variant_object mvo{vo};
fc::variants& action_variants = mvo["actions"].get_array();
for( auto& action_v : action_variants ) {
if( !action_v.is_object() ) {
Expand All @@ -1564,7 +1564,7 @@ struct get_transaction_id_subcommand {
}
fc::variant_object& action_vo = action_v.get_object();
if( action_vo.contains( "data" ) && action_vo.contains( "hex_data" ) ) {
fc::mutable_variant_object maction_vo = action_vo;
fc::mutable_variant_object maction_vo{action_vo};
maction_vo["data"] = maction_vo["hex_data"];
action_vo = maction_vo;
vo = mvo;
Expand Down

0 comments on commit d480a26

Please sign in to comment.