Skip to content

Commit

Permalink
review: replace missing u32 with BlockNumber
Browse files Browse the repository at this point in the history
  • Loading branch information
SantiagoPittella committed Jan 17, 2025
1 parent 4edc96a commit 169df11
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion miden-lib/src/notes/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use alloc::vec::Vec;
use miden_objects::{
accounts::AccountId,
assets::Asset,
block::BlockNumber,
crypto::rand::FeltRng,
notes::{
Note, NoteAssets, NoteDetails, NoteExecutionHint, NoteExecutionMode, NoteInputs,
Expand Down Expand Up @@ -65,7 +66,7 @@ pub fn create_p2idr_note<R: FeltRng>(
assets: Vec<Asset>,
note_type: NoteType,
aux: Felt,
recall_height: u32,
recall_height: BlockNumber,
rng: &mut R,
) -> Result<Note, NoteError> {
let note_script = scripts::p2idr();
Expand Down
2 changes: 1 addition & 1 deletion miden-tx/src/testing/mock_chain/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ impl MockChain {
target_account_id: AccountId,
asset: &[Asset],
note_type: NoteType,
reclaim_height: Option<u32>,
reclaim_height: Option<BlockNumber>,
) -> Result<Note, NoteError> {
let mut rng = RpoRandomCoin::new(Word::default());

Expand Down
4 changes: 2 additions & 2 deletions miden-tx/tests/integration/scripts/p2idr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ fn p2idr_script() {
let malicious_account = mock_chain.add_existing_wallet(Auth::BasicAuth, vec![]);

// Create the reclaim block heights
let reclaim_block_height_in_time = 7_u32;
let reclaim_block_height_reclaimable = 2_u32;
let reclaim_block_height_in_time = 7.into();
let reclaim_block_height_reclaimable = 2.into();

// Create the notes with the P2IDR script
let note_in_time = mock_chain
Expand Down

0 comments on commit 169df11

Please sign in to comment.