fix: make sure requestStorage is mined

This commit is contained in:
Adam Uhlíř 2024-05-07 15:45:16 +02:00
parent 1a0d2d424e
commit 5bb912007d
No known key found for this signature in database
GPG Key ID: 1D17A9E81F76155B
1 changed files with 1 additions and 1 deletions

View File

@ -14,5 +14,5 @@ method run*(state: PurchasePending, machine: Machine): Future[?State] {.async.}
codex_purchases_pending.inc()
let purchase = Purchase(machine)
let request = !purchase.request
await purchase.market.requestStorage(request)
await purchase.market.requestStorage(request).confirm(1)
return some State(PurchaseSubmitted())