Skip to content

fix(core): Fix metadata fields parsing#223

Merged
MicaiahReid merged 8 commits intomainfrom
fix/explorer-transactions
Jul 16, 2025
Merged

fix(core): Fix metadata fields parsing#223
MicaiahReid merged 8 commits intomainfrom
fix/explorer-transactions

Conversation

@BretasArthur1
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread crates/core/src/rpc/full.rs Outdated
@@ -206,18 +206,25 @@ pub fn transform_tx_metadata_to_ui_accounts(
meta.inner_instructions
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Should this method take ownership of meta and transform the data, instead of cloning?
So

pub fn transform_tx_metadata_to_ui_accounts(
    meta: TransactionMetadata,
) 

and then use into_iter()
?

Copy link
Copy Markdown
Collaborator

@lgalabru lgalabru left a comment

Choose a reason for hiding this comment

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

Looking good, thanks @BretasArthur1 !

@BretasArthur1 BretasArthur1 marked this pull request as ready for review July 15, 2025 23:42
…ke ownership of transactionmetadata to avoid cloning and improving performance
@MicaiahReid MicaiahReid merged commit 47157f5 into main Jul 16, 2025
2 checks passed
@lgalabru lgalabru deleted the fix/explorer-transactions branch July 20, 2025 16:07
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.

3 participants