[Sol2Yul] Adding support for builtin revert(string)

This commit is contained in:
Djordje Mijovic
2020-05-05 07:05:39 +02:00
parent fc41f78146
commit e8f6f63e77
4 changed files with 40 additions and 3 deletions
@@ -9,6 +9,7 @@ contract C {
}
}
// ====
// compileViaYul: also
// EVMVersion: >=byzantium
// revertStrings: debug
// ----
@@ -18,6 +18,7 @@ contract C {
}
}
// ====
// compileViaYul: also
// EVMVersion: >=byzantium
// revertStrings: debug
// ----
@@ -14,11 +14,12 @@ contract C {
}
}
// ====
// allowNonExistingFunctions: true
// compileViaYul: also
// EVMVersion: >homestead
// allowNonExistingFunctions: true
// ----
// _() -> FAILURE
// e() -> FAILURE, hex"08c379a0", 0x20, 19, "Transaction failed."
// f(bool): false -> FAILURE, hex"08c379a0", 0x20, 0
// g(bool): false -> FAILURE, hex"08c379a0", 0x20, 15, "Value is false."
// h() -> FAILURE
// h() -> FAILURE