[Sol->Yul] Implementing bytes copying from calldata to memory.

This commit is contained in:
Djordje Mijovic
2020-07-27 15:14:26 +02:00
parent da189a6678
commit 96258c7e75
11 changed files with 53 additions and 0 deletions
@@ -13,5 +13,7 @@ contract C {
return (_x.f()[0], _x.g()[0]);
}
}
// ====
// compileViaYul: also
// ----
// f(bytes): 0x20, 4, "abcd" -> 0x6100000000000000000000000000000000000000000000000000000000000000, 0x6100000000000000000000000000000000000000000000000000000000000000
@@ -13,5 +13,7 @@ contract C {
return (_x.f(), _x.g());
}
}
// ====
// compileViaYul: also
// ----
// f(bytes): 0x20, 4, "abcd" -> 0x6100000000000000000000000000000000000000000000000000000000000000, 0x6100000000000000000000000000000000000000000000000000000000000000