Skip to content

Commit 29702d6

Browse files
authored
Update sample code and add poller section
1 parent 0a1031d commit 29702d6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/confidential-ledger/quickstart-python.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ print(append_result['transactionId'])
190190
The print function will return the transaction ID of your write to the ledger, which can be used to retrieve the message you wrote to the ledger.
191191

192192
```python
193-
latest_entry = ledger_client.get_ledger_entry(transaction_id=append_result['transactionId'])['entry']
194-
print(f"Current entry (transaction id = {latest_entry['transactionId']}) in collection {latest_entry['collectionId']}: {latest_entry['contents']}")
193+
entry = ledger_client.get_ledger_entry(transaction_id=append_result['transactionId'])['entry']
194+
print(f"Entry (transaction id = {entry['transactionId']}) in collection {entry['collectionId']}: {entry['contents']}")
195195
```
196196

197197
If you would simply like the latest transaction that was committed to the ledger, you can use the `get_current_ledger_entry` function.
@@ -301,7 +301,7 @@ print(f"Current entry (transaction id = {latest_entry['transactionId']}) in coll
301301

302302
## Pollers
303303

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 your entry is durably committed.
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.
305305

306306
```python
307307
sample_entry = {"contents": "Hello world!"}

0 commit comments

Comments
 (0)