From cb685c22f37f92c9001804b367a5877f2fb47fd7 Mon Sep 17 00:00:00 2001 From: Bobbin Threadbare Date: Tue, 23 Jan 2024 11:17:38 -0800 Subject: [PATCH] refactor: change DataStore::NoteNotFound variant to take NoteId --- miden-tx/src/error.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/miden-tx/src/error.rs b/miden-tx/src/error.rs index a8cfcf97e..652fa6cf0 100644 --- a/miden-tx/src/error.rs +++ b/miden-tx/src/error.rs @@ -1,7 +1,7 @@ use core::fmt; use miden_objects::{ - assembly::AssemblyError, crypto::merkle::NodeIndex, Felt, NoteError, TransactionInputError, + assembly::AssemblyError, notes::NoteId, Felt, NoteError, TransactionInputError, TransactionOutputError, }; use miden_verifier::VerificationError; @@ -110,7 +110,7 @@ pub enum DataStoreError { BlockNotFound(u32), InvalidTransactionInput(TransactionInputError), InternalError(String), - NoteNotFound(u32, NodeIndex), + NoteNotFound(NoteId), } impl fmt::Display for DataStoreError {