Skip to content

Commit 99d8c50

Browse files
chore: Introduce end_foreign_callback_context
1 parent c3a8d96 commit 99d8c50

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

crates/miden-protocol/asm/kernels/transaction/lib/callbacks.masm

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ proc invoke_callback
136136
end
137137
# => [PROCESSED_ASSET_VALUE]
138138

139-
exec.tx::end_foreign_context
139+
exec.end_foreign_callback_context
140140
# => [PROCESSED_ASSET_VALUE]
141141
end
142142

@@ -183,3 +183,15 @@ proc start_foreign_callback_context
183183
movup.5 and
184184
# => [should_invoke, PROC_ROOT, ASSET_KEY, ASSET_VALUE]
185185
end
186+
187+
#! Ends a foreign callback context.
188+
#!
189+
#! This pops the top of the account stack, making the previous account the active account.
190+
#!
191+
#! This wrapper exists only for uniformity with start_foreign_callback_context.
192+
#!
193+
#! Inputs: []
194+
#! Outputs: []
195+
proc end_foreign_callback_context
196+
exec.tx::end_foreign_context
197+
end

0 commit comments

Comments
 (0)