Skip to content

Commit

Permalink
Breaking: remove CallframeInterface::stipend()
Browse files Browse the repository at this point in the history
  • Loading branch information
slowli committed Jan 27, 2025
1 parent 34ec535 commit 5a0bd5f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
6 changes: 0 additions & 6 deletions crates/vm2-interface/src/state_interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,6 @@ pub trait CallframeInterface {
fn gas(&self) -> u32;
/// Sets the remaining amount of gas.
fn set_gas(&mut self, new_gas: u32);
/// Additional gas provided for the duration of this callframe.
fn stipend(&self) -> u32;

/// Returns the context value for this call. This context is accessible via [`ContextU128`](crate::opcodes::ContextU128) opcode.
fn context_u128(&self) -> u128;
Expand Down Expand Up @@ -379,10 +377,6 @@ pub(crate) mod testonly {
unimplemented!()
}

fn stipend(&self) -> u32 {
unimplemented!()
}

fn context_u128(&self) -> u128 {
unimplemented!()
}
Expand Down
4 changes: 0 additions & 4 deletions crates/vm2/src/tracing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,6 @@ impl<T: Tracer, W: World<T>> CallframeInterface for CallframeWrapper<'_, T, W> {
self.frame.is_kernel
}

fn stipend(&self) -> u32 {
0 // stipend is no longer used
}

fn context_u128(&self) -> u128 {
self.frame.context_u128
}
Expand Down

0 comments on commit 5a0bd5f

Please sign in to comment.