Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[token-js] Fix confidential transfer extensions account length #6487

Merged

Conversation

samkim-crypto
Copy link
Contributor

@samkim-crypto samkim-crypto commented Mar 25, 2024

Problem

The confidential transfer extension in token-js has not been updated for a while. Currently, the wrong lengths for the confidential transfer mint and accounts are hard-coded in. Although confidential transfers are not yet supported in token-js, this could be quite confusing (e.g. #6338).

Summary of changes

Hard-code the mint and account lengths with the correct number. These should be replaced with the confidentialTransferMint.span and confidentialTransferAccount.span as soon as wasm support for zk-token-sdk lands.

Copy link
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.

Thanks for fixing this! I confirm that the numbers are correct from my own local testing

@samkim-crypto samkim-crypto merged commit ac5e7ff into solana-labs:master Mar 25, 2024
17 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.

None yet

2 participants