Skip to content

Commit

Permalink
system contract bugfix: create refund record if either net or cpu ref…
Browse files Browse the repository at this point in the history
…und requested EOSIO#3180
  • Loading branch information
moskvanaft committed May 18, 2018
1 parent 2ac89b8 commit 813de75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/eosio.system/delegate_bandwidth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ namespace eosiosystem {
} else {
need_deferred_trx = true;
}
} else if ( net_balance < asset(0) && cpu_balance < asset(0) ) { //need to create refund
} else if ( net_balance < asset(0) || cpu_balance < asset(0) ) { //need to create refund
refunds_tbl.emplace( from, [&]( refund_request& r ) {
r.owner = from;
if ( net_balance < asset(0) ) {
Expand Down

0 comments on commit 813de75

Please sign in to comment.