New answers tagged memory
0
Here's an ethresear.ch thread covering the same topic, for anyone who may stumble upon this question (as I did): https://ethresear.ch/t/clarification-on-how-calldata-persists-on-the-blockchain-and-how-optimistic-rollups-use-it/8136
Some answers from that thread:
(barrywhitehat) Call data is stored as part of the eth chain history. If you want to validate ...
3
Strings and arrays in solidity are never passed by value. The type string memory means that the variable contains a memory pointer, so when you assign a = b you are only copying the pointer to the string, not the string itself. Therefore, there is only ever one string.
If you want a copy, you will have to manually make a copy.
This function can copy a bytes ...
Top 50 recent answers are included
Related Tags
memory × 130solidity × 70
storage × 51
arrays × 24
go-ethereum × 19
contract-development × 17
struct × 12
mapping × 10
evm × 8
gas × 7
remix × 6
assembly × 6
blockchain × 5
addresses × 5
contract-design × 4
private-blockchain × 4
string × 4
bytes × 4
calldata × 4
wallets × 3
database × 3
data-types × 3
local-variables × 3
truffle × 2
erc-20 × 2