wormhole icon indicating copy to clipboard operation
wormhole copied to clipboard

Attestation Failure Due to SPL Token Metadata Size Update

Open tokenwrap opened this issue 1 year ago • 1 comments

Description and context I'm encountering an issue where attestation is failing for SOL-ETH tokens minted by Pumpfun using the Wormhole SDK. This seems to be due to recent changes in the SPL token metadata.

Problem Attestation is failing for tokens created recently. The issue arises because Metaplex resized the SPL token metadata account from 679 bytes to 607 bytes (commit 6b2e869). However, the token-bridge is still validating based on the older size, causing the attestation to fail for tokens with the new metadata accounts. Relevant link: Metaplex Token Metadata Account Size Reduction Guide.

Steps to reproduce Attempt to bridge SOL-ETH tokens minted by Pumpfun via the Wormhole SDK. Execute the transaction on the Solana network. Transaction fails during metadata validation. Experienced behavior The transaction fails because the token-bridge is validating SPL token metadata using the older size constant.

Expected behavior Tokens should bridge successfully, with metadata validation accounting for both the old and new SPL token metadata account sizes.

Solution recommendation A potential fix probably here (solana/modules/token_bridge/program/src/accounts.rs) would be to either update the token-bridge to recognize the new metadata account size or add a condition that validates tokens with both the old and new sizes.

tokenwrap avatar Oct 15 '24 17:10 tokenwrap

We also made a PR: https://github.com/wormhole-foundation/wormhole/pull/4132 but you guys can fix the way you prefer

tokenwrap avatar Oct 15 '24 17:10 tokenwrap

Hi Wormhole Team,

Just wanted to check in on the progress regarding the metadata token size validation issue (Metaplex 607 bytes). This is significantly impacting our operations as an outsourcing team working on tight project deadlines.

Any updates on the plan or estimated timeline for a fix would be greatly appreciated. Thanks for your efforts!

Sotatek-HauTran3 avatar Jun 02 '25 02:06 Sotatek-HauTran3

It is still a problem today. Could anyone help take a look at it?

jasl avatar Jul 21 '25 06:07 jasl

Is there any progres on the issue?

It seems that no new token with metadata can be bridged from Solana. This is emergency for us.

On Solana devnet the issue doesn't exist.

michalzajda avatar Sep 17 '25 13:09 michalzajda

the Solana WTT (fka. token bridge) has now been upgraded, you may use https://github.com/wormhole-foundation/demo-basic-ts-sdk/blob/main/src/scripts/create-wrapped.ts to attest new tokens (frontend support isn't available yet)

aadam-10 avatar Nov 05 '25 09:11 aadam-10