Skip to content
Lattice

ERC6551AccountStorage

Git Source

ERC-7201 namespaced storage for the token-bound account.

Note:

  • storage-location: erc7201:lattice.storage.ERC6551Account
struct ERC6551AccountStorage {
    /// @notice Home chain of the bound token. APPEND-ONLY.
    uint256 _chainId;
    /// @notice Bound ERC-721 contract. APPEND-ONLY.
    address _tokenContract;
    /// @notice Bound token id. APPEND-ONLY.
    uint256 _tokenId;
    /// @notice Monotonic state counter (bumped on each execution). APPEND-ONLY.
    uint256 _state;
}

Properties

NameTypeDescription
_chainIduint256
_tokenContractaddress
_tokenIduint256
_stateuint256