2020-11-12 14:29:08 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
2020-11-12 10:54:37 +00:00
|
|
|
// ====
|
|
|
|
// compileViaYul: also
|
2020-11-12 14:29:08 +00:00
|
|
|
// ----
|
|
|
|
// set(): 1, 2, 3, 4, 5 -> true
|
2021-03-19 13:25:19 +00:00
|
|
|
// gas irOptimized: 163790
|
2021-02-12 12:45:15 +00:00
|
|
|
// gas legacy: 163756
|
2021-03-11 11:17:50 +00:00
|
|
|
// gas legacyOptimized: 163596
|
2020-11-12 14:29:08 +00:00
|
|
|
// storage: nonempty
|
|
|
|
// reset() -> true
|
|
|
|
// storage: empty
|