File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -107,10 +107,16 @@ pub fn verify_function_execution(
107
107
verifying_key : & VerifyingKey ,
108
108
program : & Program ,
109
109
function_id : & str ,
110
+ imports : Option < Object > ,
110
111
) -> Result < bool , String > {
111
112
let function = IdentifierNative :: from_str ( function_id) . map_err ( |e| e. to_string ( ) ) ?;
112
113
let program_id = ProgramID :: < CurrentNetwork > :: from_str ( & program. id ( ) ) . unwrap ( ) ;
113
- let mut process = ProcessNative :: load_web ( ) . map_err ( |e| e. to_string ( ) ) ?;
114
+ let mut process_native = ProcessNative :: load_web ( ) . map_err ( |e| e. to_string ( ) ) ?;
115
+ let process = & mut process_native;
116
+
117
+ let program_native = ProgramNative :: from_str ( program. to_string ( ) . as_str ( ) ) . map_err ( |e| e. to_string ( ) ) ?;
118
+ ProgramManager :: resolve_imports ( process, & program_native, imports) ?;
119
+
114
120
if & program. id ( ) != "credits.aleo" {
115
121
process. add_program ( program) . map_err ( |e| e. to_string ( ) ) ?;
116
122
}
You can’t perform that action at this time.
0 commit comments