wormhole icon indicating copy to clipboard operation
wormhole copied to clipboard

solana: Validation of the new spl metadata account

Open tokenwrap opened this issue 1 year ago • 2 comments

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.

tokenwrap avatar Oct 08 '24 09:10 tokenwrap

Relevant link: https://developers.metaplex.com/token-metadata/guides/account-size-reduction

gabzim avatar Oct 08 '24 16:10 gabzim

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

tokenwrap avatar Oct 14 '24 10:10 tokenwrap

Bumping this here as well. No new token with metadata can be bridged out with Wormhole as of now.

FYI, https://github.com/wormhole-foundation/wormhole/issues/4478

michalzajda avatar Sep 17 '25 13:09 michalzajda

so now there is no option to bridge new token? is there any workaround?

bounty-wiz avatar Sep 19 '25 19:09 bounty-wiz

The contributors are working on an upgrade proposal for the Solana token bridge which will fix the issue. The changes are being audited and reviewed in the below PR, it will soon be ready for execution.

https://github.com/wormhole-foundation/wormhole/pull/4482

Closing this PR as 4482 will supersede it.

aadam-10 avatar Sep 22 '25 17:09 aadam-10