Skip to content

Add LedgerEntry to LedgerKey conversion#421

Merged
leighmcculloch merged 7 commits intomainfrom
add-ledger-entry-to-key-conversion
Mar 17, 2025
Merged

Add LedgerEntry to LedgerKey conversion#421
leighmcculloch merged 7 commits intomainfrom
add-ledger-entry-to-key-conversion

Conversation

@leighmcculloch
Copy link
Copy Markdown
Member

What

Add to_key() conversion method for LedgerEntry and it's sub-types types.

Why

Enable direct conversion from LedgerEntry to LedgerKey to simplify working with ledger entries. In some application code we've had to construct ledger keys from ledger entries, and having this conversion logic in the stellar-xdr lib would be helpful.

@leighmcculloch leighmcculloch requested a review from dmkozh March 17, 2025 05:57
@leighmcculloch leighmcculloch marked this pull request as ready for review March 17, 2025 06:27
@leighmcculloch leighmcculloch requested review from a team and removed request for dmkozh March 17, 2025 06:27
Comment thread src/next/ledgerkey.rs Outdated
@leighmcculloch leighmcculloch requested a review from dmkozh March 17, 2025 21:28
@leighmcculloch leighmcculloch added this pull request to the merge queue Mar 17, 2025
Merged via the queue into main with commit dc833c3 Mar 17, 2025
@leighmcculloch leighmcculloch deleted the add-ledger-entry-to-key-conversion branch March 17, 2025 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants