In the Ethereum EVM there are two types of memory areas, what are they?
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
kpradee1525
storage and memory
SudipSikdar
storage and memory
Vikash
The first is “storage”, where all the contract state variables reside. Every contract has its own storage and it is persistent between function calls and quite expensive to use.
The second is “memory”, this is used to hold temporary values. It is erased between (external) function calls and is cheaper to use.