Skip to content

Commit

Permalink
payment: fix allocation create/amend REST endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
kamirr committed Jul 9, 2024
1 parent 29715d6 commit fc85b43
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/payment/src/api/allocations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ async fn create_allocation(
address: address.clone(),
amount: allocation.total_amount.clone(),
timeout: allocation.timeout,
deposit: allocation.deposit.clone(),
};

match async move { Ok(bus::service(LOCAL_SERVICE).send(validate_msg).await??) }.await {
Expand Down Expand Up @@ -490,6 +491,7 @@ async fn amend_allocation(
0.into()
},
timeout: amended_allocation.timeout,
deposit: amended_allocation.deposit.clone(),
};
match async move { Ok(bus::service(LOCAL_SERVICE).send(validate_msg).await??) }.await {
Ok(true) => {}
Expand Down

0 comments on commit fc85b43

Please sign in to comment.