Skip to content

Commit

Permalink
modify inline trx memo
Browse files Browse the repository at this point in the history
  • Loading branch information
justfortest2 committed Nov 23, 2019
1 parent 3f3894b commit e027201
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions ibc.token/src/ibc.token.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit e027201

Please sign in to comment.