Merge pull request #10554 from ethereum/emptyBytesPushSol2Yul

[Sol->Yul] Implementing empty byte array push.
This commit is contained in:
chriseth
2020-12-10 12:19:07 +01:00
committed by GitHub
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 ->