File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -122,10 +122,15 @@ EVMHost::EVMHost(langutil::EVMVersion _evmVersion, evmc::VM& _vm):
122
122
m_evmRevision = EVMC_BERLIN;
123
123
else if (_evmVersion == langutil::EVMVersion::london ())
124
124
m_evmRevision = EVMC_LONDON;
125
+ // TODO: support EVMVersion::paris()
125
126
else
126
127
assertThrow (false , Exception, " Unsupported EVM version" );
127
128
128
- tx_context.block_prev_randao = evmc::uint256be{200000000 }; // TODO: should make it >2**64 for >Paris
129
+ if (m_evmRevision >= EVMC_PARIS)
130
+ // This is the value from the merge block.
131
+ tx_context.block_prev_randao = 0xa86c2e601b6c44eb4848f7d23d9df3113fbcac42041c49cbed5000cb4f118777_bytes32;
132
+ else
133
+ tx_context.block_prev_randao = evmc::uint256be{200000000 };
129
134
tx_context.block_gas_limit = 20000000 ;
130
135
tx_context.block_coinbase = 0x7878787878787878787878787878787878787878_address;
131
136
tx_context.tx_gas_price = evmc::uint256be{3000000000 };
You can’t perform that action at this time.
0 commit comments