Fix documentation about revert data.

This commit is contained in:
chriseth
2020-12-03 18:47:16 +01:00
parent 27e44b85e3
commit 61fd76cb27
2 changed files with 22 additions and 3 deletions
@@ -0,0 +1,20 @@
contract C {
fallback() external {
revert("abc");
}
function f() public returns (uint s, uint r) {
address x = address(this);
assembly {
mstore(0, 7)
s := call(sub(0, 1), x, 0, 0, 0, 0, 32)
r := mload(0)
}
}
}
// ====
// compileViaYul: also
// EVMVersion: >=byzantium
// ----
// f() -> 0x00, 0x08c379a000000000000000000000000000000000000000000000000000000000