New answers tagged

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