Skip to content

[Bug] capabilities field incorrectly shown as array in ERC-5792 code examples #1473

@zakaziko86

Description

@zakaziko86

Description

In tmp-builder-codes-outline.mdx, the capabilities field is used as an
array in all code examples:

capabilities: [{ dataSuffix }]

However, the ERC-5792 spec defines capabilities as an object (key-value
map), not an array. The correct format should be:

capabilities: {
  "erc8021": { dataSuffix }
}

Location

tmp-builder-codes-outline.mdx — multiple code examples throughout the file

Impact

  • Developers following these examples will produce invalid ERC-5792 calls
  • Wallets that strictly follow the spec will reject these calls
  • Could cause silent attribution failures

Suggested Fix

Update all capabilities examples to use the correct object format as
defined in the ERC-5792 specification.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions