pub struct RootCall {
pub entry_step: usize,
pub record: RootRecord,
pub kind: Option<String>,
}Expand description
One top-level call: where it starts, and the record that describes it.
Fields§
§entry_step: usizeThe step the call starts at.
record: RootRecord§kind: Option<String>What the call is, when the trace says, such as Foundry’s setup.
Implementations§
Source§impl RootCall
impl RootCall
Sourcepub fn address<'a>(&self, trace: &'a TransactionTrace) -> Option<&'a str>
pub fn address<'a>(&self, trace: &'a TransactionTrace) -> Option<&'a str>
The address whose code the call runs; None for a creation whose address is
unknown.
Sourcepub fn code_hash<'a>(&self, trace: &'a TransactionTrace) -> Option<&'a str>
pub fn code_hash<'a>(&self, trace: &'a TransactionTrace) -> Option<&'a str>
The hash of the code the call runs, when the backend recorded it.
Sourcepub fn creation(&self, trace: &TransactionTrace) -> bool
pub fn creation(&self, trace: &TransactionTrace) -> bool
Whether the call runs creation code.
Sourcepub fn input<'a>(&self, trace: &'a TransactionTrace) -> &'a str
pub fn input<'a>(&self, trace: &'a TransactionTrace) -> &'a str
The calldata of a call, or the init code of a creation.
Trait Implementations§
impl Eq for RootCall
impl StructuralPartialEq for RootCall
Auto Trait Implementations§
impl Freeze for RootCall
impl RefUnwindSafe for RootCall
impl Send for RootCall
impl Sync for RootCall
impl Unpin for RootCall
impl UnsafeUnpin for RootCall
impl UnwindSafe for RootCall
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more