Skip to content
This repository was archived by the owner on Apr 18, 2025. It is now read-only.

Small updates exec_trace.rs #1106

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 13 additions & 14 deletions bus-mapping/src/exec_trace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,19 @@ pub struct OperationRef(pub Target, pub usize);

impl fmt::Debug for OperationRef {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.write_fmt(format_args!(
"OperationRef{{ {}, {} }}",
match self.0 {
Target::Start => "Start",
Target::Memory => "Memory",
Target::Stack => "Stack",
Target::Storage => "Storage",
Target::TxAccessListAccount => "TxAccessListAccount",
Target::TxAccessListAccountStorage => "TxAccessListAccountStorage",
Target::TxRefund => "TxRefund",
Target::Account => "Account",
Target::CallContext => "CallContext",
Target::TxReceipt => "TxReceipt",
Target::TxLog => "TxLog",
write!(f, "OperationRef {{ {}, {} }}",
match self.0 {
Target::Start => "Start", // Start of operation
Target::Memory => "Memory", // Memory operation
Target::Stack => "Stack", // Stack operation
Target::Storage => "Storage", // Storage operation
Target::TxAccessListAccount => "TxAccessListAccount", // Transaction access list account operation
Target::TxAccessListAccountStorage => "TxAccessListAccountStorage", // Transaction access list account storage operation
Target::TxRefund => "TxRefund", // Transaction refund operation
Target::Account => "Account", // Account operation
Target::CallContext => "CallContext", // Call context operation
Target::TxReceipt => "TxReceipt", // Transaction receipt operation
Target::TxLog => "TxLog", // Transaction log operation
},
self.1
))
Expand Down