Skip to content

Commit

Permalink
Add Entrypoint to send and refactor upgrade_actor to call send
Browse files Browse the repository at this point in the history
  • Loading branch information
fridrik01 committed Sep 8, 2023
1 parent 159083c commit ffba463
Show file tree
Hide file tree
Showing 11 changed files with 203 additions and 331 deletions.
10 changes: 6 additions & 4 deletions fvm/src/call_manager/backtrace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ use std::fmt::Display;

use fvm_shared::address::Address;
use fvm_shared::error::{ErrorNumber, ExitCode};
use fvm_shared::{ActorID, MethodNum};
use fvm_shared::ActorID;

use crate::kernel::SyscallError;

use super::Entrypoint;

/// A call backtrace records the actors an error was propagated through, from
/// the moment it was emitted. The original error is the _cause_. Backtraces are
/// useful for identifying the root cause of an error.
Expand Down Expand Up @@ -76,8 +78,8 @@ impl Backtrace {
pub struct Frame {
/// The actor that exited with this code.
pub source: ActorID,
/// The method that was invoked.
pub method: MethodNum,
/// The entrypoint that was invoked.
pub entrypoint: Entrypoint,
/// The exit code.
pub code: ExitCode,
/// The abort message.
Expand All @@ -90,7 +92,7 @@ impl Display for Frame {
f,
"{} (method {}) -- {} ({})",
Address::new_id(self.source),
self.method,
self.entrypoint,
&self.message,
self.code,
)
Expand Down
Loading

0 comments on commit ffba463

Please sign in to comment.