Skip to content

Commit 2d0b51e

Browse files
committed
Add Entrypoint to send and refactor upgrade_actor to call send
1 parent 0a561bd commit 2d0b51e

File tree

11 files changed

+203
-331
lines changed

11 files changed

+203
-331
lines changed

fvm/src/call_manager/backtrace.rs

+6-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ use std::fmt::Display;
44

55
use fvm_shared::address::Address;
66
use fvm_shared::error::{ErrorNumber, ExitCode};
7-
use fvm_shared::{ActorID, MethodNum};
7+
use fvm_shared::ActorID;
88

99
use crate::kernel::SyscallError;
1010

11+
use super::Entrypoint;
12+
1113
/// A call backtrace records the actors an error was propagated through, from
1214
/// the moment it was emitted. The original error is the _cause_. Backtraces are
1315
/// useful for identifying the root cause of an error.
@@ -76,8 +78,8 @@ impl Backtrace {
7678
pub struct Frame {
7779
/// The actor that exited with this code.
7880
pub source: ActorID,
79-
/// The method that was invoked.
80-
pub method: MethodNum,
81+
/// The entrypoint that was invoked.
82+
pub entrypoint: Entrypoint,
8183
/// The exit code.
8284
pub code: ExitCode,
8385
/// The abort message.
@@ -90,7 +92,7 @@ impl Display for Frame {
9092
f,
9193
"{} (method {}) -- {} ({})",
9294
Address::new_id(self.source),
93-
self.method,
95+
self.entrypoint,
9496
&self.message,
9597
self.code,
9698
)

0 commit comments

Comments
 (0)