Remove dedicated *_foreign
procedures
#922
Labels
kernels
Related to transaction, batch, or block kernels
refactoring
Code clean-ups, improvements, and refactoring
Milestone
What should be done?
As soon as the refactoring of the
DYN
operation and fix of the bug in theCALLER
instruction will be done, we will be able to rework the way the foreign procedures are called during the execution of theexecute_foreign_procedure
. Namely,get_item_foreign
,get_map_item_foreign
andauthenticate_account_origin_foreign
procedures become unnecessary: we will be able to use the basic versions of these procedures.How should it be done?
get_item_foreign
andget_map_item_foreign
procedures should be removed from theapi.masm
, FPI tests in thetest_tx.rs
should callget_item
andget_map_item
instead.authenticate_account_origin_foreign
procedure should be removed from theapi.masm
, since it was used only in the "foreign" versions of theget_item
andget_map_item
procedures.When is this task done?
This task is done when we will be able to achieve the same functionality of the foreign procedure invocation using only "non-foreign" procedures.
Additional context
No response
The text was updated successfully, but these errors were encountered: