-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: removed external dependencies from miden-lib #1188
base: next
Are you sure you want to change the base?
Conversation
crates/miden-lib/src/note/utils.rs
Outdated
use crate::note::{ | ||
scripts, AccountId, Asset, NoteError, NoteExecutionMode, NoteInputs, NoteRecipient, NoteTag, | ||
NoteType, Word, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think #1145 is just about replacing import with re-exports from the root. Here writing use crate::note::{...}
is the same as use super::{...}
, which I don't think is desirable.
So I think we should only replace imports with crate imports when that import is re-exported at the root, i.e. if we can do use crate::{...}
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. I left one comment, but after that I think it's ready to merge.
use miden_objects::{note::NoteMetadata, AccountDeltaError, AssetError, Digest, Felt, NoteError}; | ||
use miden_objects::{note::NoteMetadata, AccountDeltaError, AssetError, NoteError}; | ||
use thiserror::Error; | ||
|
||
use crate::transaction::{Digest, Felt}; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would revert this change. It's fine to import from miden_objects as well.
b35b49a
to
5785daf
Compare
Ref #1145
removed external dependencies from miden-lib