Skip to content

Replace custom data_into_key with to_key method#2301

Merged
leighmcculloch merged 1 commit into
mainfrom
use-ledger-entry-to-key
Nov 21, 2025
Merged

Replace custom data_into_key with to_key method#2301
leighmcculloch merged 1 commit into
mainfrom
use-ledger-entry-to-key

Conversation

@leighmcculloch
Copy link
Copy Markdown
Member

What

Replace the custom data_into_key function with LedgerEntry's built-in to_key method and remove the 86-line helper function along with its associated imports.

Why

The stellar-xdr library now provides a native to_key method on LedgerEntry, eliminating the need for a custom implementation that manually converts each LedgerEntryData variant to its corresponding LedgerKey.

@github-project-automation github-project-automation Bot moved this to Backlog (Not Ready) in DevX Nov 21, 2025
@leighmcculloch leighmcculloch marked this pull request as ready for review November 21, 2025 03:34
Copy link
Copy Markdown
Member

@fnando fnando left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

90 lines out, 4 lines in. Love it!

@leighmcculloch leighmcculloch merged commit 352db56 into main Nov 21, 2025
32 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog (Not Ready) to Done in DevX Nov 21, 2025
@leighmcculloch leighmcculloch deleted the use-ledger-entry-to-key branch November 21, 2025 03:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants