mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[Sol->Yul] Adding util function to copy literal to storage.
Co-authored-by: Daniel Kirchner <daniel@ekpyron.org> Co-authored-by: chriseth <chris@ethereum.org>
This commit is contained in:
co-authored by
Daniel Kirchner
chriseth
parent
9d156b52c4
commit
f0c5cdca9f
@@ -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