Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
montekki committed May 3, 2024
1 parent 69947e4 commit 84189fc
Show file tree
Hide file tree
Showing 7 changed files with 480 additions and 3 deletions.
5 changes: 5 additions & 0 deletions src/callframe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ pub struct Callframe {
pub(crate) heaps_i_am_keeping_alive: Vec<u32>,

pub(crate) world_before_this_frame: Snapshot,

pub(crate) total_pubdata_spent: i32,
}

#[derive(Clone, PartialEq, Debug)]
Expand Down Expand Up @@ -83,6 +85,7 @@ impl Callframe {
exception_handler,
near_calls: vec![],
world_before_this_frame,
total_pubdata_spent: 0,
}
}

Expand Down Expand Up @@ -112,6 +115,7 @@ impl Callframe {
program_counter: f.call_instruction,
exception_handler: f.exception_handler,
snapshot: f.world_before_this_frame,
total_pubdata_spent: 0,
}
})
}
Expand Down Expand Up @@ -142,4 +146,5 @@ pub(crate) struct FrameRemnant {
pub(crate) program_counter: u16,
pub(crate) exception_handler: u16,
pub(crate) snapshot: Snapshot,
pub(crate) total_pubdata_spent: i32,
}
Loading

0 comments on commit 84189fc

Please sign in to comment.