[Sol->Yul] Implementing empty byte array push.

This commit is contained in:
Djordje Mijovic
2020-12-09 19:31:35 +01:00
parent 052b97e217
commit ab74194ca3
3 changed files with 16 additions and 4 deletions
@@ -22,6 +22,8 @@ contract C {
return data[0];
}
}
// ====
// compileViaYul: also
// ----
// fromMemory() -> 0x00
// fromCalldata(bytes): 0x40, 0x60, 0x00, 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff -> 0x00
@@ -18,6 +18,8 @@ contract C {
return array[index];
}
}
// ====
// compileViaYul: also
// ----
// l() -> 0
// g(uint256): 70 ->