test stage

This commit is contained in:
hrkrshnn
2022-01-19 20:31:10 +01:00
committed by Kamil Śliwak
parent e79a25ed7f
commit ed2d41c2af
22 changed files with 99 additions and 108 deletions
+1 -10
View File
@@ -100,16 +100,7 @@ string YulUtilFunctions::copyToMemoryFunction(bool _fromCalldata)
{
return Whiskers(R"(
function <functionName>(src, dst, length) {
let i := 0
for { } lt(i, length) { i := add(i, 32) }
{
mstore(add(dst, i), mload(add(src, i)))
}
if gt(i, length)
{
// clear end
mstore(add(dst, length), 0)
}
pop(staticcall(gas(), 4, src, length, dst, length))
}
)")
("functionName", functionName)