---
title: "Discussion on \"Storing Static Type in Solidity's Storage\" | Hashnode"
description: "Discussion on \"Storing Static Type in Solidity's Storage\". Let’s first have a look at the Code\ncontract Demo{\n    uint256 a 1234 // slot 0\n    uint8 b = 0x12; // slot 1\n    uint8[6] c = [1,2,3,4,5,6]; // line 4 (slot 2)\n    uint256[2] d = [10,20] // line 5 slot(3 & 4)\n\nfunction getSlotvalue(uint slot) public..."
url: "https://hashnode.com/posts/storing-static-type-in-soliditys-storage/673cc08c5c4a7fa8e0fe264e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Storing Static Type in Solidity's Storage](https://mansoor-eth.hashnode.dev/storing-static-type-in-soliditys-storage?utm_source=hashnode&utm_medium=feed)

Let’s first have a look at the Code contract Demo{ uint256 a 1234 // slot 0 uint8 b = 0x12; // slot 1 uint8\[6\] c = \[1,2,3,4,5,6\]; // line 4 (slot 2) uint256\[2\] d = \[10,20\] // line 5 slot(3 & 4) function getSlotvalue(uint slot) public...

Nov 19, 2024 · 1 min read · mansoor-eth.hashnode.dev  
Read the article

-   [#solidity](https://hashnode.com/tag/solidity)
-   [#evm-storage](https://hashnode.com/tag/evm-storage)
-   [#smart-contracts](https://hashnode.com/tag/smart-contracts)

## Written by

[Mansoor Butt](https://hashnode.com/@MansoorEth)

@MansoorEth · Karachi,Pakistan

  
[View profile](https://hashnode.com/@MansoorEth)

Software Engineer building Smart Contracts

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
