Skip to content

Support Custom Storage Layout #1282

@Janther

Description

@Janther

Solidity 0.8.29 introduced Custom Storage Layout

// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.29;

contract C layout at 0xAAAA + 0x11 {
    uint[3] x; // Occupies slots 0xAABB..0xAABD
}

where the layout is declared using layout at <base-slot-expression> where base-slot-expression is an expression that evaluates to a uint256.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions