Code generation for errors.

This commit is contained in:
chriseth
2021-03-30 21:15:46 +02:00
parent 3353107779
commit d5669696d5
16 changed files with 236 additions and 40 deletions
+6
View File
@@ -69,6 +69,12 @@ public:
/// Stack post:
void revertWithStringData(Type const& _argumentType);
void revertWithError(
std::string const& _errorName,
std::vector<Type const*> const& _parameterTypes,
std::vector<Type const*> const& _argumentTypes
);
/// Allocates a new array and copies the return data to it.
/// If the EVM does not support return data, creates an empty array.
void returnDataToArray();