[Sol->Yul] Implementing bytes to bytesNN for IR codegen.

Co-authored-by: Alex Beregszaszi <alex@rtfs.hu>
This commit is contained in:
Djordje Mijovic
2021-04-23 13:30:15 +02:00
co-authored by Alex Beregszaszi
parent ece42c07df
commit 52538558b1
3 changed files with 76 additions and 5 deletions
+4
View File
@@ -411,6 +411,10 @@ public:
/// This is used for data being encoded or general type conversions in the code.
std::string conversionFunction(Type const& _from, Type const& _to);
/// @returns the name of a function that converts bytes array to fixed bytes type
/// signature: (array) -> value
std::string bytesToFixedBytesConversionFunction(ArrayType const& _from, FixedBytesType const& _to);
/// @returns the name of the cleanup function for the given type and
/// adds its implementation to the requested functions.
/// The cleanup function defers to the validator function with "assert"