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.
Description
In
tmp-builder-codes-outline.mdx, thecapabilitiesfield is used as anarray in all code examples:
However, the ERC-5792 spec defines
capabilitiesas an object (key-valuemap), not an array. The correct format should be:
Location
tmp-builder-codes-outline.mdx— multiple code examples throughout the fileImpact
Suggested Fix
Update all
capabilitiesexamples to use the correct object format asdefined in the ERC-5792 specification.