Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
mirror aca23ef3ae86bde5e005d2b6965c55c432617a13 (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
StanislavBreadless authored May 21, 2024
1 parent c42da15 commit 9bbf7ff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/opcodes/execution/far_call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,9 @@ impl<const N: usize, E: VmEncodingMode<N>> DecodedOpcode<N, E> {
new_context_is_static
};

let memory_stipend = if dst_is_kernel {
// NOTE: this one decides based on what next frame will be, and not just on the formal
// call target
let memory_stipend = if address_is_kernel(&address_for_next) {
zkevm_opcode_defs::system_params::NEW_KERNEL_FRAME_MEMORY_STIPEND
} else {
zkevm_opcode_defs::system_params::NEW_FRAME_MEMORY_STIPEND
Expand Down

0 comments on commit 9bbf7ff

Please sign in to comment.