Skip to content

Commit

Permalink
#153: updated the docs to reference expirationLedgerSeq as the new re…
Browse files Browse the repository at this point in the history
…sponse data (#164)
  • Loading branch information
sreuland authored Oct 12, 2023
1 parent 4fe4c30 commit ce179ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ A breaking change should be clearly marked in this log.
## Unreleased

## Added
* Include `expiration` attribute on ledger data entries in `getContractData` and `getLedgerEntries` responses ([#153](https://github.com/stellar/js-soroban-client/pull/153)).
* Include `expirationLedgerSeq` attribute on ledger data entries in `getContractData` and `getLedgerEntries` responses ([#153](https://github.com/stellar/js-soroban-client/pull/153)).

### Breaking Changes
* All endpoints will now automatically decode XDR structures whenever possible. In particular,
Expand Down
4 changes: 2 additions & 2 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export class Server {
* const key = xdr.ScVal.scvSymbol("counter");
* server.getContractData(contractId, key, Durability.Temporary).then(data => {
* console.log("value:", data.val);
* console.log("expiration:", data.expiration);
* console.log("expirationLedgerSeq:", data.expirationLedgerSeq);
* console.log("lastModified:", data.lastModifiedLedgerSeq);
* console.log("latestLedger:", data.latestLedger);
* });
Expand Down Expand Up @@ -261,7 +261,7 @@ export class Server {
* const ledgerData = response.entries[0];
* console.log("key:", ledgerData.key);
* console.log("value:", ledgerData.val);
* console.log("expiration:", ledgerData.expiration);
* console.log("expirationLedgerSeq:", ledgerData.expirationLedgerSeq);
* console.log("lastModified:", ledgerData.lastModifiedLedgerSeq);
* console.log("latestLedger:", response.latestLedger);
* });
Expand Down

0 comments on commit ce179ae

Please sign in to comment.