Skip to content

Commit 4691a07

Browse files
authored
Merge pull request #101414 from PallabPaul/pallabpaul/confidential-ledger-python-quickstart-fix
[Confidential Ledger] Update Python Quickstart Document
2 parents a26469f + 6df6644 commit 4691a07

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

articles/confidential-ledger/quickstart-python.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,14 +194,15 @@ entry = ledger_client.get_ledger_entry(transaction_id=append_result['transaction
194194
print(f"Entry (transaction id = {entry['transactionId']}) in collection {entry['collectionId']}: {entry['contents']}")
195195
```
196196

197-
If you would simply like the latest transaction that was committed to the ledger, you can use the `get_current_ledger_entry` function.
197+
If you just want the latest transaction that was committed to the ledger, you can use the `get_current_ledger_entry` function.
198+
198199

199200
```python
200201
latest_entry = ledger_client.get_current_ledger_entry()
201202
print(f"Current entry (transaction id = {latest_entry['transactionId']}) in collection {latest_entry['collectionId']}: {latest_entry['contents']}")
202203
```
203204

204-
The print function will return "Hello world!", as that is the message in the ledger that that corresponds to the transaction ID and is the latest transaction.
205+
The print function will return "Hello world!", as that's the message in the ledger that corresponds to the transaction ID and is the latest transaction.
205206

206207
## Full sample code
207208

@@ -301,7 +302,7 @@ print(f"Current entry (transaction id = {latest_entry['transactionId']}) in coll
301302

302303
## Pollers
303304

304-
If you would like to wait for your write transaction to be committed to your ledger you can use the `begin_create_ledger_entry` function. This will return a poller to wait until the entry is durably committed.
305+
If you'd like to wait for your write transaction to be committed to your ledger, you can use the `begin_create_ledger_entry` function. This will return a poller to wait until the entry is durably committed.
305306

306307
```python
307308
sample_entry = {"contents": "Hello world!"}

0 commit comments

Comments
 (0)