Skip to content

Commit

Permalink
Add comments to Call/InvokeActor enum
Browse files Browse the repository at this point in the history
  • Loading branch information
fridrik01 committed Aug 21, 2023
1 parent f86a49b commit 8a00486
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fvm/src/trace/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ pub type ExecutionTrace = Vec<ExecutionEvent>;
#[non_exhaustive]
pub enum ExecutionEvent {
GasCharge(GasCharge),
/// Emitted on each send call regardless whether we actually end up invoking the
/// actor or not (e.g. if we don't have enough gas or if the actor does not exist)
Call {
from: ActorID,
to: Address,
Expand All @@ -31,5 +33,6 @@ pub enum ExecutionEvent {
},
CallReturn(ExitCode, Option<IpldBlock>),
CallError(SyscallError),
/// Emitted every time we successfully invoke an actor
InvokeActor(Cid),
}

0 comments on commit 8a00486

Please sign in to comment.