Closed ilmoi closed 2 years ago
@lorisleiva @thlorenz this is due to corrupted metadata. The fix is on devnet currently and should go to mainnet this week. Once it's on mainnet folks will be able to fix their metadata by running update_metadata_accounts_v2
on it. I also added a custom implementation of the Borsh deserialize
trait that checks for the metadata issues and uses sane defaults when it finds it. I'm not sure how the JS lib does deserialization but if you want to explore adding something similar, let me know.
Is this a common problem? v 1.x.x lib was able to deserialize, so wondering if I need to bite the bullet and downgrade to 1.x.x... or if it's a one off
The Metadata de/serialization is derived from the Rust account struct (annotated with shank). So just re-running the SDK generator might do the trick.
Is the fix on master?
The Metadata de/serialization is derived from the Rust account struct (annotated with shank). So just re-running the SDK generator might do the trick.
Is the fix on master?
It is now, yes.
We basically need to replicate the custom Rust de/serialization function in the SDK and add an option to solita to override the generic one it generates.
I'm going to look into this ASAP.
@ilmoi I'm trying to reproduce your issue exactly, but the code snippet isn't complete (missing baseFilters
and programs.metadata
and such).
Could you link me to a repo that has everything ready to run so I can repro this quickly?
I wanna reproduce to make 100% sure this is fixed when I'm done.
OK. no longer need the above .. was able to find some accounts that have exactly the issue you described ... from that same creator
@ilmoi please confirm that the issue is fixed for you now. Thanks!
works flawlessly, thx for fixing guys
Which package is this bug report for?
token-metadata
Issue description
Trying to deserialize a bunch of PDAs for Boryoku Dragonz that I got from gPA:
creator = DRGNjvBvnXNiQz9dTppGk1tAsVxtJsvhEmojEfBU3ezf
using the latest metdata js lib (@metaplex-foundation/mpl-token-metadata):
For some of them works fine (about 100 out of 1100), but for the rest it fails with the following error:
Any advice? 🙏
Relevant log output
No response
Priority this issue should have
High (immediate attention needed)