diff --git a/pallets/asset/src/lib.rs b/pallets/asset/src/lib.rs index c195e4d0b..345d90252 100644 --- a/pallets/asset/src/lib.rs +++ b/pallets/asset/src/lib.rs @@ -1669,7 +1669,9 @@ impl Module { TickersOwnedByUser::remove(caller_did, ticker); TickerAssetId::remove(ticker); AssetIdTicker::remove(asset_id); - + Self::deposit_event(RawEvent::TickerUnlinkedFromAsset( + caller_did, ticker, asset_id, + )); Ok(()) } } diff --git a/pallets/common/src/traits/asset.rs b/pallets/common/src/traits/asset.rs index 10ceedc2b..6e6a564be 100644 --- a/pallets/common/src/traits/asset.rs +++ b/pallets/common/src/traits/asset.rs @@ -182,6 +182,9 @@ decl_event! { /// An identity has linked a ticker to an asset. /// Parameters: [`IdentityId`] of caller, [`Ticker`] of the asset, the asset identifier [`AssetId`]. TickerLinkedToAsset(IdentityId, Ticker, AssetId), + /// An identity has unlinked a ticker from an asset. + /// Parameters: [`IdentityId`] of caller, unlinked [`Ticker`], the asset identifier [`AssetId`]. + TickerUnlinkedFromAsset(IdentityId, Ticker, AssetId), } }