git.delta.rocks / unique-network / refs/commits / 188bd8206a9f

difftreelog

feat add Approved event

Yaroslav Bolyukin2021-03-22parent: #e4dd4c0.patch.diff
in: master

1 file changed

modifiedpallets/nft/src/lib.rsdiffbeforeafterboth
654 /// * amount: Always 1 for NFT654 /// * amount: Always 1 for NFT
655 Transfer(CollectionId, TokenId, AccountId, AccountId, u128),655 Transfer(CollectionId, TokenId, AccountId, AccountId, u128),
656
657 /// * collection_id
658 ///
659 /// * item_id
660 ///
661 /// * sender
662 ///
663 /// * spender
664 ///
665 /// * amount
666 Approved(CollectionId, TokenId, AccountId, AccountId, u128),
656 }667 }
657);668);
658669
1292 }1303 }
1293 <Allowances<T>>::insert(collection_id, (item_id, sender.clone(), spender.clone()), allowance);1304 <Allowances<T>>::insert(collection_id, (item_id, sender.clone(), spender.clone()), allowance);
12941305
1306 Self::deposit_event(RawEvent::Approved(target_collection.id, item_id, sender, spender, allowance));
1295 Ok(())1307 Ok(())
1296 }1308 }
1297 1309