Skip to content

[Bug] MetadataAccount invalid parsing #40

@timaiv

Description

@timaiv

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions