Skip to content

Commit 23bcacf

Browse files
pa-longalexpitsikoulis
authored andcommitted
Added ProgramNative import
Signed-off-by: makerare <[email protected]>
1 parent 399d10a commit 23bcacf

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

wasm/src/programs/execution.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
// along with the Provable SDK library. If not, see <https://www.gnu.org/licenses/>.
1616

1717
pub use super::*;
18-
use crate::{
19-
Transition,
20-
types::native::{CurrentNetwork, ExecutionNative, IdentifierNative, ProcessNative, ProgramID, VerifyingKeyNative},
21-
};
18+
19+
use crate::{types::native::{
20+
CurrentNetwork, ExecutionNative, IdentifierNative, ProcessNative, ProgramID, ProgramNative, VerifyingKeyNative
21+
}, Transition};
2222
use snarkvm_algorithms::snark::varuna::VarunaVersion;
2323

2424
use js_sys::Array;
@@ -113,10 +113,8 @@ pub fn verify_function_execution(
113113
let program_id = ProgramID::<CurrentNetwork>::from_str(&program.id()).unwrap();
114114
let mut process_native = ProcessNative::load_web().map_err(|e| e.to_string())?;
115115
let process = &mut process_native;
116-
117116
let program_native = ProgramNative::from_str(program.to_string().as_str()).map_err(|e| e.to_string())?;
118117
ProgramManager::resolve_imports(process, &program_native, imports)?;
119-
120118
if &program.id() != "credits.aleo" {
121119
process.add_program(program).map_err(|e| e.to_string())?;
122120
}

0 commit comments

Comments
 (0)