Skip to content

Commit

Permalink
refactor: remove Word import from test
Browse files Browse the repository at this point in the history
  • Loading branch information
tomyrd committed Dec 2, 2024
1 parent 56545a8 commit e7d6a5b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions miden-tx/src/tests/kernel_tests/test_note.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use miden_lib::{
use miden_objects::{
notes::Note, testing::prepare_word, transaction::TransactionArgs, Hasher, WORD_SIZE,
};
use vm_processor::{ProcessState, Word, EMPTY_WORD, ONE};
use vm_processor::{ProcessState, EMPTY_WORD, ONE};

use super::{Felt, Process, ZERO};
use crate::{
Expand Down Expand Up @@ -540,6 +540,6 @@ fn test_get_current_script_hash() {

let process = tx_context.execute_code(code).unwrap();

let script_hash: Word = tx_context.input_notes().get_note(0).note().script().hash().into();
assert_eq!(process.stack.get_word(0), script_hash);
let script_hash = tx_context.input_notes().get_note(0).note().script().hash();
assert_eq!(process.stack.get_word(0), script_hash.as_elements());
}

0 comments on commit e7d6a5b

Please sign in to comment.