You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Go through the imports and insert the verifying keys for each function.
126
126
for imported_program_id in program.imports().keys(){
127
127
// Get the list of functions.
128
-
let vk_list = Array::try_from(Reflect::get(&import_verifying_keys,&imported_program_id.to_string().into()).map_err(|_| format!("Verifying key not found for imported program {}", imported_program_id))?)
129
-
.map_err(|_| format!("Verifying key not found for imported program {}", imported_program_id))?;
.map_err(|_| format!("Verifying key not found for imported program {}", imported_program_id))?,
131
+
)
132
+
.map_err(|_| format!("Verifying key not found for imported program {}", imported_program_id))?;
130
133
// Get the verifying key for each function.
131
134
for i in0..vk_list.length(){
132
135
let vk = Array::try_from(vk_list.get(i)).map_err(|_| format!("Verifying key and function not found for {}, for each function provide an array of the form ['function_name', 'vk']", imported_program_id))?;
133
136
{
134
137
// Insert the verifying key into the temporary process.
135
-
let imported_function= IdentifierNative::from_str(&vk.get(0).as_string().ok_or("Function not found in imports provided")?).map_err(|e| e.to_string())?;
136
-
let verifying_key = VerifyingKeyNative::from_str(&vk.get(1).as_string().ok_or("Verifying key not found in imports provided")?).map_err(|e| e.to_string())?;
0 commit comments