solidity/test/libsolidity/semanticTests/array/copying/copy_removes_bytes_data.sol
Daniel Kirchner 44da8507b1 Change default EVM version to Shanghai.
Co-authored-by: Rodrigo Q. Saramago <rodrigoqsaramago@gmail.com>
2023-05-08 16:34:23 +02:00

16 lines
382 B
Solidity

contract c {
function set() public returns (bool) { data1 = msg.data; return true; }
function reset() public returns (bool) { data1 = data2; return true; }
bytes data1;
bytes data2;
}
// ----
// set(): 1, 2, 3, 4, 5 -> true
// gas irOptimized: 177383
// gas legacy: 177954
// gas legacyOptimized: 177554
// storageEmpty -> 0
// reset() -> true
// storageEmpty -> 1