From 4f7c7a0b9fba6c9f8986e6ea10f3555fac5b8a88 Mon Sep 17 00:00:00 2001 From: Bobbin Threadbare Date: Tue, 27 Feb 2024 22:12:15 -0700 Subject: [PATCH] fix: no-std compilation for miden-mock --- mock/src/lib.rs | 1 + mock/src/procedures.rs | 2 ++ mock/src/utils.rs | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/mock/src/lib.rs b/mock/src/lib.rs index cd16df689..247e7f029 100644 --- a/mock/src/lib.rs +++ b/mock/src/lib.rs @@ -9,6 +9,7 @@ use miden_lib::transaction::{memory, ToTransactionKernelInputs, TransactionKerne use miden_objects::{ notes::NoteAssets, transaction::{OutputNotes, PreparedTransaction, TransactionArgs, TransactionInputs}, + utils::string::*, Felt, }; use mock::host::MockHost; diff --git a/mock/src/procedures.rs b/mock/src/procedures.rs index b297f8f3e..c27fadc61 100644 --- a/mock/src/procedures.rs +++ b/mock/src/procedures.rs @@ -1,3 +1,5 @@ +use miden_objects::utils::string::*; + use super::{ memory::{ CREATED_NOTE_ASSETS_OFFSET, CREATED_NOTE_METADATA_OFFSET, CREATED_NOTE_NUM_ASSETS_OFFSET, diff --git a/mock/src/utils.rs b/mock/src/utils.rs index eb9cb841e..81d1f5eb4 100644 --- a/mock/src/utils.rs +++ b/mock/src/utils.rs @@ -1,5 +1,5 @@ pub use miden_objects::utils::*; -use miden_objects::{notes::NoteAssets, Word}; +use miden_objects::{notes::NoteAssets, utils::string::*, Word}; // TODO: These functions are duplicates from miden-lib/test/common/procedures.rs pub fn prepare_word(word: &Word) -> String {