[Sol->Yul] Implementing type name.

This commit is contained in:
Djordje Mijovic
2020-12-30 17:19:03 +01:00
parent 1837e0ae7f
commit ddb05769a5
4 changed files with 42 additions and 2 deletions
+5
View File
@@ -72,6 +72,11 @@ public:
/// Pads with zeros and might write more than exactly length.
std::string copyToMemoryFunction(bool _fromCalldata);
/// @returns a function name that copies string literal to memory
/// and returns pointer to memory array containing it
/// signature: () -> memPtr
std::string copyToMemoryLiteralFunction(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);