Skip to content

Commit

Permalink
fix a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
vonhenry committed Apr 12, 2019
1 parent ac3387a commit ce4150a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ibc.token/src/ibc.token.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ namespace eosio {

for ( const auto& trx_id : trxs ){
auto idx = _origtrxs.get_index<"trxid"_n>();
auto record = idx.get( fixed_bytes<32>(trx_id.hash) );
const auto& record = idx.get( fixed_bytes<32>(trx_id.hash) );
transfer_action_info action_info = record.action;

if ( action_info.contract != _self ){ // rollback ibc transfer
Expand Down Expand Up @@ -922,8 +922,8 @@ namespace eosio {

for ( const auto& trx_id : trxs ){
auto idx = _origtrxs.get_index<"trxid"_n>();
auto it = idx.get( fixed_bytes<32>(trx_id.hash) );
_origtrxs.erase( it );
const auto& record = idx.get( fixed_bytes<32>(trx_id.hash) );
_origtrxs.erase( record );
}
}

Expand Down

0 comments on commit ce4150a

Please sign in to comment.