Skip to content

Commit

Permalink
Merge pull request #7 from matter-labs/comment-fix
Browse files Browse the repository at this point in the history
docs: improve comments a bit
  • Loading branch information
montekki authored Apr 30, 2024
2 parents f745d47 + c5a78ed commit 07959ae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/callframe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ pub struct Callframe {
pub context_u128: u128,
pub is_static: bool,

// TODO: joint allocate these.
pub stack: Box<Stack>,

pub heap: u32,
Expand Down
2 changes: 2 additions & 0 deletions src/modified_world.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ pub struct ExternalSnapshot {
written_storage_slots: <RollbackableMap<(H160, U256), ()> as Rollback>::Snapshot,
}

/// There is no address field because nobody is interested in events that don't come
/// from the event writer, so we simply do not record events coming frome anywhere else.
#[derive(Clone, PartialEq, Debug)]
pub struct Event {
pub key: U256,
Expand Down
1 change: 1 addition & 0 deletions src/stack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use u256::U256;

#[derive(Clone, PartialEq, Debug)]
pub struct Stack {
/// set of slots that may be interpreted as [crate::fat_pointer::FatPointer].
pub pointer_flags: Bitset,
dirty_areas: u64,
slots: [U256; 1 << 16],
Expand Down

0 comments on commit 07959ae

Please sign in to comment.