![blockchain - Solidity smart contract: Data location must be "memory" or " calldata" for return parameter in function, but none was given - Stack Overflow blockchain - Solidity smart contract: Data location must be "memory" or " calldata" for return parameter in function, but none was given - Stack Overflow](https://i.stack.imgur.com/q0woa.png)
blockchain - Solidity smart contract: Data location must be "memory" or " calldata" for return parameter in function, but none was given - Stack Overflow
![Alchemy | Powering Web3⚡️ on X: "Memory and calldata trip up a bunch of builders for how similar they are to each other. But no no!! ☝️ They have very important distinctions. Alchemy | Powering Web3⚡️ on X: "Memory and calldata trip up a bunch of builders for how similar they are to each other. But no no!! ☝️ They have very important distinctions.](https://pbs.twimg.com/media/Fp1TFIhaYAAhSMg.jpg:large)
Alchemy | Powering Web3⚡️ on X: "Memory and calldata trip up a bunch of builders for how similar they are to each other. But no no!! ☝️ They have very important distinctions.
![Learn Solidity lesson 13. Storage, memory, calldata and the stack. | by João Paulo Morais | Coinmonks | Medium Learn Solidity lesson 13. Storage, memory, calldata and the stack. | by João Paulo Morais | Coinmonks | Medium](https://miro.medium.com/v2/resize:fit:1400/1*j7YdZtJYSZvtjJcIekbCoQ.jpeg)
Learn Solidity lesson 13. Storage, memory, calldata and the stack. | by João Paulo Morais | Coinmonks | Medium
![Learn Solidity lesson 13. Storage, memory, calldata and the stack. | by João Paulo Morais | Coinmonks | Medium Learn Solidity lesson 13. Storage, memory, calldata and the stack. | by João Paulo Morais | Coinmonks | Medium](https://miro.medium.com/v2/resize:fit:1400/1*3LlXz_ETI-rQlQ_8snLaEQ.png)