Skip to content
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

Open
wants to merge 2 commits into
base: next
Choose a base branch
from

Conversation

varun-doshi
Copy link
Contributor

Ref #1145

removed external dependencies from miden-lib

Comment on lines 1 to 3
use crate::note::{
scripts, AccountId, Asset, NoteError, NoteExecutionMode, NoteInputs, NoteRecipient, NoteTag,
NoteType, Word,
Copy link
Contributor

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::{...}.

@bobbinth bobbinth added the no changelog This PR does not require an entry in the `CHANGELOG.md` file label Mar 3, 2025
Copy link
Contributor

@PhilippGackstatter PhilippGackstatter left a 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.

Comment on lines 4 to 8
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};

Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no changelog This PR does not require an entry in the `CHANGELOG.md` file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants