Skip to content

[confidential-transfer] Deprecate try_combine_lo_hi_u64 function#712

Merged
samkim-crypto merged 1 commit intosolana-program:mainfrom
samkim-crypto:deprecate-combine-function
Sep 15, 2025
Merged

[confidential-transfer] Deprecate try_combine_lo_hi_u64 function#712
samkim-crypto merged 1 commit intosolana-program:mainfrom
samkim-crypto:deprecate-combine-function

Conversation

@samkim-crypto
Copy link
Copy Markdown
Contributor

Problem

The function try_combine_lo_hi_u64 contains logic error. The intended behavior is to shift amount_hi with the bit-length and add it with amount_lo.

The function is actually not used anywhere in the crate and I think we just missed removing this function during refactoring. This is why this function did not affect the tests.

Summary of Changes

I considered fixing this function, but since it is not used anywhere in the crate, I thought it would actually be best to just remove it. The current crate version is v0.5.0, so I deprecated the function for v0.6.0.

Copy link
Copy Markdown
Contributor

@joncinque joncinque left a comment

Choose a reason for hiding this comment

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

Makes sense to me, thanks!

@samkim-crypto samkim-crypto merged commit f9784e8 into solana-program:main Sep 15, 2025
30 checks passed
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