Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add create WASM module level function #1821

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
426 changes: 211 additions & 215 deletions Cargo.lock

Large diffs are not rendered by default.

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