[Bug] capabilities field incorrectly shown as array in ERC-5792 code examples
- Dominant language
- JavaScript
- Stars
- 337
- Forks
- 792
- Avg merge
- 17h 23m
- Merged PRs (30d)
- 49
Description
## Description
In `tmp-builder-codes-outline.mdx`, the `capabilities` field is used as an
**array** in all code examples:
```js
capabilities: [{ dataSuffix }]
```
However, the ERC-5792 spec defines `capabilities` as an **object** (key-value
map), not an array. The correct format should be:
```js
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.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.