Solidity 8 – Data Location

Published by Mario Oettler on

Last Updated on 23. March 2023 by Martin Schuster

The Ethereum Virtual Machine (EVM) knows three places where to store data (actually, it is five):

  • storage,
  • memory,
  • stack,
  • calldata
  • (logs)

Knowing the storage place can be relevant for gas optimization, initialization, and value assignment to variables. It can also be important to understand how contracts work and explain some behavior of contracts.

The logs are reserved for events and are not important for us in this context.

Categories:

https://blockchain-academy.hs-mittweida.de/wp-content/uploads/2021/04/logo_bcam_rgb_gross.png

Welcome

Blockchain Academy

Continue with credential

No account yet?

Powered by Hidy

Register with Hidy


Register
Sign in

We need the following credential to register:

please select:

To create a new account, we need the following data from you:

We would appreciate the following additional information from you for the creation of your account:

Welcome

Blockchain Academy

Continue with credential

Already have an account?

Powered by Hidy

Sign in with Hidy


Register
Sign in

We need the following credential to log in:

please select: