Skip to content

Commit

Permalink
fix: policy id not emit in deletepolicy event (#481)
Browse files Browse the repository at this point in the history
  • Loading branch information
fynnss authored Sep 15, 2023
1 parent 53ad8e6 commit 5229cc3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions x/permission/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ func (k Keeper) DeletePolicy(ctx sdk.Context, principal *types.Principal, resour
if policy.ExpirationTime != nil {
store.Delete(types.PolicyPrefixQueue(policy.ExpirationTime, policy.Id.Bytes()))
}
policyID = policy.Id
}
} else if principal.Type == types.PRINCIPAL_TYPE_GNFD_GROUP {
groupID, err := principal.GetGroupID()
Expand Down

0 comments on commit 5229cc3

Please sign in to comment.