Skip to content

Support $.fieldXXX.slot syntax for erc-7201 style storage #16091

@zhiqiangxu

Description

@zhiqiangxu

It'll be very helpful to support such syntax:

Erc7201Storage storage $ = _getStorage();
assembly {
    sstore($.fieldXXX.slot, shr(192, calldataload(176)))
}

Currently, the xxx.slot syntax only works if xxx is a directly declared contract storage variable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions