Skip to content

Commit

Permalink
GH-538 Use hex trimming logic for logging of hex_data json value.
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Jun 25, 2022
1 parent 8c10e77 commit e974add
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/chain/include/eosio/chain/abi_serializer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ namespace impl {
binary_to_variant_context _ctx(*abi, ctx, type);
_ctx.short_path = true; // Just to be safe while avoiding the complexity of threading an override boolean all over the place
mvo( "data", abi->_binary_to_variant( type, act.data, _ctx ));
mvo("hex_data", act.data);
set_hex_data(mvo, "hex_data", act.data);
} catch(...) {
// any failure to serialize data, then leave as not serailzed
set_hex_data(mvo, "data", act.data);
Expand Down

0 comments on commit e974add

Please sign in to comment.