diff --git a/contracts/dispute-resolution/src/lib.rs b/contracts/dispute-resolution/src/lib.rs index ba19ef3..b28e08b 100644 --- a/contracts/dispute-resolution/src/lib.rs +++ b/contracts/dispute-resolution/src/lib.rs @@ -331,6 +331,15 @@ impl DisputeResolutionContract { } } + if used_escrow && dispute.claim_amount > 0 { + let token_client = token::Client::new(&env, &dispute.token); + token_client.transfer( + &env.current_contract_address(), + &dispute.claimant, + &dispute.claim_amount, + ); + } + if dispute.outcome == DisputeOutcome::NoAction && dispute.claim_amount > 0 { let token_client = token::Client::new(&env, &dispute.token); token_client.transfer(