mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Yul proto converter: Output prevrandao for evm versions >= paris
This commit is contained in:
parent
206e7cf5db
commit
564cf85725
@ -715,6 +715,9 @@ void ProtoConverter::visit(NullaryOp const& _x)
|
||||
m_output << "number()";
|
||||
break;
|
||||
case NullaryOp::DIFFICULTY:
|
||||
if (m_evmVersion >= EVMVersion::paris())
|
||||
m_output << "prevrandao()";
|
||||
else
|
||||
m_output << "difficulty()";
|
||||
break;
|
||||
case NullaryOp::GASLIMIT:
|
||||
|
Loading…
Reference in New Issue
Block a user