Merge pull request #13902 from ethereum/paris-proto

Yul proto converter: Output prevrandao for evm versions >= paris
This commit is contained in:
Bhargava Shastry
2023-01-30 11:49:48 +01:00
committed by GitHub
+4 -1
View File
@@ -715,7 +715,10 @@ void ProtoConverter::visit(NullaryOp const& _x)
m_output << "number()";
break;
case NullaryOp::DIFFICULTY:
m_output << "difficulty()";
if (m_evmVersion >= EVMVersion::paris())
m_output << "prevrandao()";
else
m_output << "difficulty()";
break;
case NullaryOp::GASLIMIT:
m_output << "gaslimit()";