Skip to content

Commit

Permalink
Update lib.rs (#1662)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdossa authored May 2, 2024
1 parent a5e4c83 commit dfb0fdd
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pallets/asset/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2083,9 +2083,6 @@ impl<T: Config> Module<T> {
if let Some(ref funding_round_name) = funding_round_name {
FundingRound::insert(ticker, funding_round_name);
}
Self::unverified_update_idents(caller_did, ticker, identifiers.clone());
// Grant owner full agent permissions.
<ExternalAgents<T>>::unchecked_add_agent(ticker, caller_did, AgentGroup::Full)?;

AssetOwnershipRelations::insert(caller_did, ticker, AssetOwnershipRelation::AssetOwned);
Self::deposit_event(RawEvent::AssetCreated(
Expand All @@ -2095,9 +2092,14 @@ impl<T: Config> Module<T> {
asset_type,
caller_did,
asset_name,
identifiers,
identifiers.clone(),
funding_round_name,
));

//These emit events which should come after the main AssetCreated event
Self::unverified_update_idents(caller_did, ticker, identifiers);
// Grant owner full agent permissions.
<ExternalAgents<T>>::unchecked_add_agent(ticker, caller_did, AgentGroup::Full)?;
Ok(())
}

Expand Down

0 comments on commit dfb0fdd

Please sign in to comment.