macro_rules! assert_note_created {
($tx:expr $(, $key:ident : $val:expr)* $(,)?) => { ... };
}Available on crate feature
testing only.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()],
);