From e0272014e8c8bc5fa22fc97e2396b73a672254b6 Mon Sep 17 00:00:00 2001 From: vonhenry Date: Sat, 23 Nov 2019 12:17:36 +0800 Subject: [PATCH] modify inline trx memo --- ibc.token/src/ibc.token.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ibc.token/src/ibc.token.cpp b/ibc.token/src/ibc.token.cpp index 4ceaafa..a872494 100644 --- a/ibc.token/src/ibc.token.cpp +++ b/ibc.token/src/ibc.token.cpp @@ -780,9 +780,10 @@ namespace eosio { add_balance( _self, new_quantity, _self ); if( to != _self ) { if ( memo_info.notes.size() > 256 ) memo_info.notes.resize( 256 ); - string new_memo = memo_info.notes + " | from peerchain trx_id:" + capi_checksum256_to_string(orig_trx_id) + " " + /* string new_memo = memo_info.notes + " | from peerchain trx_id:" + capi_checksum256_to_string(orig_trx_id) + " " + args.from.to_string() + "(" + quantity.to_string() + ") --ibc-issue--> thischain " - + to.to_string() + "(" + new_quantity.to_string() + ")"; + + to.to_string() + "(" + new_quantity.to_string() + ")"; */ + string new_memo = memo_info.notes; transfer_action_type action_data{ _self, to, new_quantity, new_memo }; action( permission_level{ _self, "active"_n }, _self, "transfer"_n, action_data ).send(); } @@ -829,9 +830,10 @@ namespace eosio { if( to != _self ) { if ( memo_info.notes.size() > 70 ) memo_info.notes.resize( 70 ); - string new_memo = memo_info.notes + " | from peerchain trx_id:" + capi_checksum256_to_string(orig_trx_id) + " " + /* string new_memo = memo_info.notes + " | from peerchain trx_id:" + capi_checksum256_to_string(orig_trx_id) + " " + args.from.to_string() + "(" + quantity.to_string() + ") --ibc-withdraw--> thischain " - + to.to_string() + "(" + new_quantity.to_string() + ")"; + + to.to_string() + "(" + new_quantity.to_string() + ")"; */ + string new_memo = memo_info.notes; if ( new_memo.size() > 250 ) new_memo.resize( 250 ); transfer_action_type action_data{ _self, to, new_quantity, new_memo }; action( permission_level{ _self, "active"_n }, acpt.original_contract, "transfer"_n, action_data ).send();