Program the Blockchain | Understanding Ethereum Smart Contract Storage
Ethereum smart contracts use an uncommon storage model that often confuses new developers. In this post, I’ll describe that storage model and explain how the Solidity programming language makes use of it.
Ethereum smart contracts use an uncommon storage model that often confuses new developers. In this post, I'll describe that storage model and explain how the Solidity programming language makes use of it. One Astronomically Large Array Each smart contract running in the Ethereum Virtual Machine (EVM) maintains state in its own permanent storage. This storage can be thought of as a very large array, initially full of zeros. Each value in the array is 32-bytes wide, and there are 2 256 such values. A smart contract can read from or write to a value at any location. That's the extent of the stora
related reading
- Introduction to Smart Contracts — Solidity 0.8.38-develop documentationdocs.soliditylang.org
- Mediumsteveng.medium.com
- The Ethereum Virtual Machine — How does it work? | by Luit | MyCrypto | Mediummedium.com
- Anatomy of smart contracts | ethereum.orgethereum.org
- Understand EVM bytecode – Part 1blog.trustlook.com
- Solidity Patternsfravoll.github.io
- Introduction to Smart Contracts - Solidity 0.8.24 documentationdocs.soliditylang.org
- What Are Smart Contracts and How Do They Work?academy.binance.com
- Ethereum development documentation | ethereum.orgethereum.org
- How does Ethereum work, anyway?preethikasireddy.com
- The Hitchhiker's Guide to Ethereum - Delphi Digitalmembers.delphidigital.io
- solidity - Are there any examples of using precompiled contracts? - Ethereum Stack Exchangeethereum.stackexchange.com