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 authored and ClaytonCalabrese committed Jun 30, 2022
1 parent f7de017 commit c384249
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 @@ -492,7 +492,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 c384249

Please sign in to comment.