mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
refactor: store plain receipts instead Options in Receipts (#14010)
This commit is contained in:
@ -348,13 +348,13 @@ where
|
||||
|
||||
cumulative_gas_used += exec_result.result.gas_used();
|
||||
#[allow(clippy::needless_update)] // side-effect of optimism fields
|
||||
receipts.push(Some(Receipt {
|
||||
receipts.push(Receipt {
|
||||
tx_type: tx.tx_type(),
|
||||
success: exec_result.result.is_success(),
|
||||
cumulative_gas_used,
|
||||
logs: exec_result.result.into_logs().into_iter().collect(),
|
||||
..Default::default()
|
||||
}));
|
||||
});
|
||||
|
||||
// append transaction to the list of executed transactions
|
||||
transactions.push(tx);
|
||||
|
||||
Reference in New Issue
Block a user