Skip to content

[FEATURE]: natspec doc for AccountStorage #421

@wjmelements

Description

@wjmelements

Feature Summary

ERC-7201 establishes @custom:storage-location. While proposing their own formula, they allow for other formulas.

Future EIPs may define new formulas with unique formula identifiers. It is recommended to follow the convention set in this EIP and use an identifier of the format erc1234.

I think the bytes9 formula used in IthacaAccount is good in contexts where codesize is important, and so its formula should be standardized.

The reason to do this is:

The Solidity compiler includes this annotation in the AST

Timeline

Idea (long term)

Security Considerations

n/a

Proposed Solution

@custom:storage-location ercXXXX:ITHACA_ACCOUNT_STORAGE
struct AccountStorage {

if you don't want to standardize it, I suggest:

@custom:storage-location ithacaxyz:ITHACA_ACCOUNT_STORAGE
struct AccountStorage {

Gas Considerations

No response

Implementation Notes

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions