From 5cd26c79d26836688d6bd84a350ba42a8c32a018 Mon Sep 17 00:00:00 2001 From: Henrique Nogara Date: Wed, 16 Oct 2024 11:09:21 -0300 Subject: [PATCH] Add missing TickerUnlinkedFromAsset event (#1742) --- pallets/asset/src/lib.rs | 4 +++- pallets/common/src/traits/asset.rs | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) 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), } }