[Sol->Yul] Implementing arrays copying to storage.

Co-authored-by: chriseth <chris@ethereum.org>
This commit is contained in:
Djordje Mijovic
2020-10-13 20:31:08 +02:00
co-authored by chriseth
parent bc97c3e1ce
commit 850a94bdc9
3 changed files with 187 additions and 29 deletions
+4
View File
@@ -173,6 +173,10 @@ public:
/// signature: (slot) ->
std::string clearStorageArrayFunction(ArrayType const& _type);
/// @returns the name of a function that will copy array from calldata or memory to storage
/// signature (to_slot, from_ptr) ->
std::string copyArrayToStorage(ArrayType const& _fromType, ArrayType const& _toType);
/// Returns the name of a function that will convert a given length to the
/// size in memory (number of storage slots or calldata/memory bytes) it
/// will require.