Skip to content

Commit 845ab74

Browse files
committed
Merge branch 'develop'
2 parents aca2461 + 7044fad commit 845ab74

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • contracts/escrow/src/core/validators

‎contracts/escrow/src/core/validators/escrow.rs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,15 @@ pub fn validate_escrow_property_change_conditions(
7474
return Err(ContractError::EscrowHasFunds);
7575
}
7676

77-
if existing_escrow.amount == 0 {
77+
if new_escrow.amount == 0 {
7878
return Err(ContractError::AmountCannotBeZero);
7979
}
8080

81-
if existing_escrow.milestones.len() > 10 {
81+
if new_escrow.milestones.len() > 10 {
8282
return Err(ContractError::TooManyMilestones);
8383
}
8484

85-
if existing_escrow.milestones.is_empty() {
85+
if new_escrow.milestones.is_empty() {
8686
return Err(ContractError::NoMilestoneDefined);
8787
}
8888

0 commit comments

Comments
 (0)