mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #13902 from ethereum/paris-proto
Yul proto converter: Output prevrandao for evm versions >= paris
This commit is contained in:
commit
cfc62a4e07
@ -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()";
|
||||
|
Loading…
Reference in New Issue
Block a user