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

solana: Validation of the new spl metadata account #4132

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

tokenwrap
Copy link

Problem: Attestation is failing for tokens that were created recently.

Cause: Metaplex has resized the SPL token metadata account from 679 bytes to 607 bytes in the commit (6b2e869) However, the token-bridge is still using the older version of the SPL token metadata and validating the size based on the older constant. As a result, this check fails to attest tokens that are using the new metadata accounts.

Solution: To resolve this, I have added an additional condition with the new metadata length constant, allowing the validation to pass if the SPL token has either of the two metadata account lengths.

Problem: Attestation is failing for tokens that were created recently.

Cause: Metaplex has resized the SPL token metadata account from 679 bytes to 607 bytes in the commit (6b2e869)
However, the token-bridge is still using the older version of the SPL token metadata and validating the size based on the older constant. As a result, this check fails to attest tokens that are using the new metadata accounts.

Solution: To resolve this, I have added an additional condition with the new metadata length constant, allowing the validation to pass if the SPL token has either of the two metadata account lengths.
@gabzim
Copy link

gabzim commented Oct 8, 2024

@tokenwrap
Copy link
Author

tokenwrap commented Oct 14, 2024

Hi team any news @kcsongor @a5-pickle @johnsaigle

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