diff --git a/test/unittests/state_transition.cpp b/test/unittests/state_transition.cpp index 9d08fcecf5..1e1cd6b444 100644 --- a/test/unittests/state_transition.cpp +++ b/test/unittests/state_transition.cpp @@ -180,6 +180,7 @@ void state_transition::export_state_test( jenv["currentGasLimit"] = hex0x(block.gas_limit); jenv["currentCoinbase"] = hex0x(block.coinbase); jenv["currentBaseFee"] = hex0x(block.base_fee); + jenv["currentRandom"] = hex0x(block.prev_randao); jt["pre"] = to_json(pre); @@ -211,6 +212,9 @@ void state_transition::export_state_test( jtx["gasLimit"][0] = hex0x(tx.gas_limit); jtx["value"][0] = hex0x(tx.value); + if (tx.type >= Transaction::Type::access_list) + jtx["accessLists"][0] = json::json::array({}); + if (!tx.access_list.empty()) { auto& ja = jtx["accessLists"][0];