mirror of
https://git.dirksys.ovh/dirk/bankserver.git
synced 2025-12-20 11:09:21 +01:00
fix amount used by interop pay endpoint
This commit is contained in:
parent
0202985e22
commit
0972bedc49
@ -89,7 +89,7 @@ async fn interop_pay(
|
|||||||
let Some((user, account)) = target.account_id(&mut client).await? else {
|
let Some((user, account)) = target.account_id(&mut client).await? else {
|
||||||
return Ok(StatusCode::NOT_FOUND);
|
return Ok(StatusCode::NOT_FOUND);
|
||||||
};
|
};
|
||||||
let (_, notification) = TransactionBuilder::new(&mut client, body.amount)
|
let (_, notification) = TransactionBuilder::new(&mut client, body.amount * 100)
|
||||||
.await?
|
.await?
|
||||||
.interop_receive(account, body.from, None)
|
.interop_receive(account, body.from, None)
|
||||||
.await?;
|
.await?;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user