mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Only forward returndata if EVM version supports it.
This commit is contained in:
1 parent
42c4c78390
commit
fcb7a27216
2 files changed
+3
-1
No files matched your search
@@ -264,7 +264,7 @@ CompilerContext& CompilerContext::appendRevert()
|
||||
|
||||
CompilerContext& CompilerContext::appendConditionalRevert(bool _forwardReturnData)
|
||||
{
|
||||
if (_forwardReturnData)
|
||||
if (_forwardReturnData && m_evmVersion.supportsReturndata())
|
||||
appendInlineAssembly(R"({
|
||||
if condition {
|
||||
returndatacopy(0, 0, returndatasize())
|
||||
|
||||
Reference in new issue
Block a user