Skip to content

Commit

Permalink
refactor: rename LedgerInfo.ledger_header to `LedgerInfo.header_xdr…
Browse files Browse the repository at this point in the history
…`, `LedgerInfo.ledger_metadata` to `LedgerInfo.metadata_xdr` (#994)
  • Loading branch information
overcat authored Nov 14, 2024
1 parent fb566cb commit fc792be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ Release History
==============

### Pending
#### Update
- refactor: rename `LedgerInfo.ledger_header` to `LedgerInfo.header_xdr`, `LedgerInfo.ledger_metadata` to `LedgerInfo.metadata_xdr`

### Version 12.0.0-beta2

Expand Down
4 changes: 2 additions & 2 deletions stellar_sdk/soroban_rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,9 +445,9 @@ class LedgerInfo(BaseModel):
sequence: int
ledger_close_time: int = Field(alias="ledgerCloseTime")
# LedgerHeaderHistoryEntry XDR in base64
ledger_header: str = Field(alias="headerXdr")
header_xdr: str = Field(alias="headerXdr")
# LedgerCloseMeta XDR in base64
ledger_metadata: str = Field(alias="metadataXdr")
metadata_xdr: str = Field(alias="metadataXdr")


class GetLedgersResponse(BaseModel):
Expand Down

0 comments on commit fc792be

Please sign in to comment.