mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #10768 from ethereum/copyLiteralToStorageSol2Yul
[Sol->Yul] Adding util function to copy literal to storage.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user