@@ -213,7 +213,9 @@ async def create(
213
213
)
214
214
)
215
215
async with AuthenticatedAlephHttpClient (account = account ) as client :
216
- vouchers = await client .voucher .fetch_vouchers_by_chain (chain = Chain (account .CHAIN ))
216
+ vouchers = await client .voucher .fetch_vouchers_by_chain (
217
+ address = address , chain = Chain (account .CHAIN )
218
+ )
217
219
if len (vouchers ) == 0 :
218
220
console .print ("No NFT vouchers find on this account" )
219
221
raise typer .Exit (code = 1 )
@@ -354,7 +356,9 @@ async def create(
354
356
)
355
357
356
358
if not tier :
357
- pricing .display_table_for (entity = pricing_entity , network_gpu = found_gpu_models , tier = None )
359
+ pricing .display_table_for (
360
+ entity = pricing_entity , network_gpu = found_gpu_models , tier = None , payment_type = payment_type
361
+ )
358
362
tiers = list (pricing .data [pricing_entity ].tiers )
359
363
360
364
# GPU entities: filter to tiers that actually use the selected GPUs
@@ -418,7 +422,8 @@ async def create(
418
422
compute_unit_price = pricing .data [pricing_entity ].price .get ("compute_unit" )
419
423
if payment_type in [PaymentType .hold , PaymentType .superfluid ]:
420
424
# Early check with minimal cost (Gas + Aleph ERC20)
421
- balance_response = await client .get_balances (address )
425
+ async with AlephHttpClient (api_server = settings .API_HOST ) as client :
426
+ balance_response = await client .get_balances (address )
422
427
available_amount = balance_response .balance - balance_response .locked_amount
423
428
available_funds = Decimal (0 if is_stream else available_amount )
424
429
try :
0 commit comments