wormhole
wormhole copied to clipboard
solana: Validation of the new spl metadata account
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.
Relevant link: https://developers.metaplex.com/token-metadata/guides/account-size-reduction
Hi team any news @kcsongor @a5-pickle @johnsaigle
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
so now there is no option to bridge new token? is there any workaround?
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.