Skip to content

Commit

Permalink
Add missing TickerUnlinkedFromAsset event (#1742)
Browse files Browse the repository at this point in the history
  • Loading branch information
HenriqueNogara authored Oct 16, 2024
1 parent 011d43f commit 5cd26c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pallets/asset/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1669,7 +1669,9 @@ impl<T: Config> Module<T> {
TickersOwnedByUser::remove(caller_did, ticker);
TickerAssetId::remove(ticker);
AssetIdTicker::remove(asset_id);

Self::deposit_event(RawEvent::TickerUnlinkedFromAsset(
caller_did, ticker, asset_id,
));
Ok(())
}
}
Expand Down
3 changes: 3 additions & 0 deletions pallets/common/src/traits/asset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
}

Expand Down

0 comments on commit 5cd26c7

Please sign in to comment.