Skip to content

Commit

Permalink
FIXUP
Browse files Browse the repository at this point in the history
  • Loading branch information
Neopallium committed Nov 14, 2024
1 parent d4bb224 commit d0ff790
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions pallets/common/src/traits/portfolio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ decl_event! {
IdentityId,
PortfolioId,
AssetId
)
),
/// Allow another identity to create portfolios.
///
/// # Parameters
Expand All @@ -210,7 +210,7 @@ decl_event! {
AllowIdentityToCreatePortfolios(
IdentityId,
IdentityId,
)
),
/// Revoke another identities permission to create portfolios.
///
/// # Parameters
Expand All @@ -219,7 +219,7 @@ decl_event! {
RevokeCreatePortfoliosPermission(
IdentityId,
IdentityId,
)
),
}
}

Expand Down
5 changes: 3 additions & 2 deletions pallets/portfolio/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,7 @@ impl<T: Config> Module<T> {
);
AllowedCustodians::insert(callers_did, trusted_identity, true);
Self::deposit_event(Event::AllowIdentityToCreatePortfolios(
caller_did,
callers_did,
trusted_identity,
));
Ok(())
Expand All @@ -878,7 +878,8 @@ impl<T: Config> Module<T> {
let callers_did = Identity::<T>::ensure_perms(origin)?;
AllowedCustodians::remove(callers_did, identity);
Self::deposit_event(Event::RevokeCreatePortfoliosPermission(
caller_did, identity,
callers_did,
identity,
));
Ok(())
}
Expand Down

0 comments on commit d0ff790

Please sign in to comment.