Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6a25682

Browse files
authoredJul 3, 2024··
get_quote_and_pay_update
1 parent 1239914 commit 6a25682

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎quickstart_complete/client_code/secret_addition_complete.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
from py_nillion_client import NodeKey, UserKey
1414
from dotenv import load_dotenv
15-
from nillion_python_helpers import pay, create_nillion_client, create_payments_config
15+
from nillion_python_helpers import get_quote_and_pay, create_nillion_client, create_payments_config
1616

1717
from cosmpy.aerial.client import LedgerClient
1818
from cosmpy.aerial.wallet import LocalWallet
@@ -53,7 +53,7 @@ async def main():
5353
)
5454

5555
# Pay to store the program and obtain a receipt of the payment
56-
receipt_store_program = await pay(
56+
receipt_store_program = await get_quote_and_pay(
5757
client,
5858
nillion.Operation.store_program(program_mir_path),
5959
payments_wallet,
@@ -88,7 +88,7 @@ async def main():
8888
permissions.add_compute_permissions({client.user_id: {program_id}})
8989

9090
# Pay for and store the secret in the network and print the returned store_id
91-
receipt_store = await pay(
91+
receipt_store = await get_quote_and_pay(
9292
client,
9393
nillion.Operation.store_values(new_secret, ttl_days=5),
9494
payments_wallet,
@@ -111,7 +111,7 @@ async def main():
111111
computation_time_secrets = nillion.NadaValues({"my_int2": nillion.SecretInteger(10)})
112112

113113
# Pay for the compute
114-
receipt_compute = await pay(
114+
receipt_compute = await get_quote_and_pay(
115115
client,
116116
nillion.Operation.compute(program_id, computation_time_secrets),
117117
payments_wallet,

0 commit comments

Comments
 (0)
Please sign in to comment.