Merge pull request #10768 from ethereum/copyLiteralToStorageSol2Yul

[Sol->Yul] Adding util function to copy literal to storage.
This commit is contained in:
chriseth
2021-05-06 10:44:39 +02:00
committed by GitHub
13 changed files with 182 additions and 89 deletions
+4
View File
@@ -81,6 +81,10 @@ public:
/// signature: (memPtr) ->
std::string storeLiteralInMemoryFunction(std::string const& _literal);
/// @returns the name of a function that stores a string literal at a specific location in storage
/// signature: (slot) ->
std::string copyLiteralToStorageFunction(std::string const& _literal);
// @returns the name of a function that has the equivalent logic of an
// `assert` or `require` call.
std::string requireOrAssertFunction(bool _assert, Type const* _messageType = nullptr);