Skip to main content

assert_note_created

Macro assert_note_created 

Source
macro_rules! assert_note_created {
    ($tx:expr $(, $key:ident : $val:expr)* $(,)?) => { ... };
}
Expand description

Asserts the tx emitted a note matching the spec. Fields are optional; unset ones are skipped.

§Example

use miden_testing::assert_note_created;
use miden_protocol::note::NoteType;

assert_note_created!(
    executed_tx,
    note_type: NoteType::Public,
    sender: faucet.id(),
    assets: [FungibleAsset::new(faucet.id(), amount)?.into()],
);