[Sol->Yul] Implementing Byte array push() and pop()

This commit is contained in:
Djordje Mijovic
2020-05-19 14:47:00 +02:00
parent a8ca8f75ff
commit d235d0c166
9 changed files with 227 additions and 28 deletions
+8
View File
@@ -364,6 +364,14 @@ private:
/// use exactly one variable to hold the value.
std::string conversionFunctionSpecial(Type const& _from, Type const& _to);
/// @returns function name that extracts and returns byte array length
/// signature: (data) -> length
std::string extractByteArrayLengthFunction();
/// @returns the name of a function that reduces the size of a storage byte array by one element
/// signature: (byteArray)
std::string storageByteArrayPopFunction(ArrayType const& _type);
std::string readFromMemoryOrCalldata(Type const& _type, bool _fromCalldata);
langutil::EVMVersion m_evmVersion;