Skip to content

Commit

Permalink
Merge pull request #589 from golemfactory/allow-total-amount-allocation
Browse files Browse the repository at this point in the history
Allow total amount allocation
  • Loading branch information
nieznanysprawiciel authored Aug 5, 2022
2 parents 088d2db + 2c38b93 commit 51e5b6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions goth/runner/probe/mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,13 +271,13 @@ async def pay_invoices(

@step()
async def create_allocation(
self: ProbeProtocol, timeout: Optional[datetime] = None
self: ProbeProtocol, timeout: Optional[datetime] = None, total_amount=0
) -> Allocation:
"""Call create_allocation on the market api."""

allocation = Allocation(
allocation_id="",
total_amount=0,
total_amount=total_amount,
spent_amount=0,
remaining_amount=0,
make_deposit=True,
Expand Down

0 comments on commit 51e5b6f

Please sign in to comment.