Skip to content

Commit

Permalink
Merge pull request #81 from NillionNetwork/chore/0.8.0-update
Browse files Browse the repository at this point in the history
chore: topup client balance | 0.8.0 release
  • Loading branch information
psofiterol authored Dec 5, 2024
2 parents 0b9e1c3 + ca28cd9 commit 8105acc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions quickstart_complete/client_code/secret_addition_complete.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ async def main():
program_name = "secret_addition_complete"
program_mir_path = f"../nada_quickstart_programs/target/{program_name}.nada.bin"

# Adding funds to the client balance so the upcoming operations can be paid for
funds_amount = 1000
print(f"💰 Adding some funds to the client balance: {funds_amount} uNIL")
await client.add_funds(funds_amount)

# 3. Store the program
print("-----STORE PROGRAM")

Expand Down Expand Up @@ -101,6 +106,9 @@ async def main():
result = await client.retrieve_compute_results(compute_id).invoke()
print(f"✅ Compute complete for compute_id {compute_id}")
print(f"🖥️ The result is {result}")
balance = await client.balance()
print(f"💰 Final client balance: {balance.balance} uNIL")
client.close()
return result


Expand Down

0 comments on commit 8105acc

Please sign in to comment.