Skip to content

Commit 0b9e1c3

Browse files
authored
Merge pull request #80 from NillionNetwork/chore/update-comments-on-completed-example
chore: updated comments on completed examples
2 parents f2b8eba + d04d465 commit 0b9e1c3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

quickstart_complete/client_code/secret_addition_complete.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@
2727
home = os.getenv("HOME")
2828
load_dotenv(f"{home}/.config/nillion/nillion-devnet.env")
2929

30+
3031
async def main():
31-
# 2. Initial setup, Initialize NillionClient against nillion-devnet
32+
# 2. Initial setup/config, then initialize the NillionClient against nillion-devnet
3233
# Use the devnet configuration generated by `nillion-devnet`
3334
network = Network.from_config("devnet")
3435

@@ -47,8 +48,7 @@ async def main():
4748
program_name = "secret_addition_complete"
4849
program_mir_path = f"../nada_quickstart_programs/target/{program_name}.nada.bin"
4950

50-
51-
# 3. Pay for and store the program
51+
# 3. Store the program
5252
print("-----STORE PROGRAM")
5353

5454
# Store program
@@ -58,7 +58,7 @@ async def main():
5858
# Print details about stored program
5959
print(f"Stored program_id: {program_id}")
6060

61-
# 4. Create the 1st secret, add permissions, pay for and store it in the network
61+
# 4. Create the 1st secret, add permissions and store it in the network
6262
print("-----STORE SECRETS")
6363

6464
# Create a secret
@@ -71,7 +71,7 @@ async def main():
7171
client.user_id, program_id
7272
)
7373

74-
# Store a secret, passing in the receipt that shows proof of payment
74+
# Store a secret
7575
values_id = await client.store_values(
7676
values, ttl_days=5, permissions=permissions
7777
).invoke()

0 commit comments

Comments
 (0)