Copy byte arrays from storage to storage.

This commit is contained in:
chriseth
2020-11-16 19:06:33 +01:00
parent 5431afcc8c
commit 62893aa1a1
7 changed files with 132 additions and 124 deletions
@@ -3,6 +3,8 @@ contract c {
function copy(uint from, uint to) public returns (bool) { data[to] = data[from]; return true; }
mapping(uint => bytes) data;
}
// ====
// compileViaYul: also
// ----
// set(uint256): 1, 2 -> true
// set(uint256): 2, 2, 3, 4, 5 -> true