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

[Bug] MetadataAccount invalid parsing #40

Open
timaiv opened this issue Aug 8, 2022 · 0 comments
Open

[Bug] MetadataAccount invalid parsing #40

timaiv opened this issue Aug 8, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@timaiv
Copy link

timaiv commented Aug 8, 2022

Describe the bug
{"Specified argument was out of the range of valid values. (Parameter 'offset')"} exception in ParseData.

Reproduce
Create nft without creators but with primarySaleHappened.

Why
(binData.GetU16(MetadataAccountLayout.creatorsOffset) gives 256

  1. MetadataAccountLayout creatorsOffset must be 321, not 322
  2. creators is optional field.

Also, next fields missing

  • primarySaleHappened (not set)
  • isMutable (not set)
  • editionNonce (not set)
  • tokenStandard
  • collection
  • uses

P.S.
Current used manual deserializing is so bad, better use schema (like here), possible also code generator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant