Skip to content
4 changes: 2 additions & 2 deletions substrate/frame/nfts/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -874,8 +874,8 @@ pub mod pallet {
),
);
Self::deposit_event(Event::PalletAttributeSet {
collection,
item: Some(item),
collection: collection_id,
item: Some(owned_item),
attribute: pallet_attribute,
value: attribute_value,
});
Expand Down
6 changes: 6 additions & 0 deletions substrate/frame/nfts/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,12 @@ fn mint_should_work() {
account(2),
Some(MintWitness { owned_item: Some(43), ..Default::default() })
));
assert!(events().contains(&Event::<Test>::PalletAttributeSet {
collection: 0,
item: Some(43),
attribute: PalletAttributes::<<Test as Config>::CollectionId>::UsedToClaim(1),
value: Nfts::construct_attribute_value(vec![]).unwrap(),
}));

// can't mint twice
assert_noop!(
Expand Down