DEV Community

Solidity: external vs. public & memory vs. calldata vs. storage

Turbo Panumarch on April 01, 2022

It is written in many places how these things are. But what not easy to decide when to use which of them, as it needs a deeper understanding to cho...
Collapse
 
turboza profile image
Turbo Panumarch

Found this one on why OpenZeppelin team uses memory over calldata.

forum.openzeppelin.com/t/why-does-...

It seems calldata is limited in functionalities when using with internal function, so they go for memory.