Repository: desmos-labs/desmos
Pull request #759 (2022-02-28 10:52:09)

fix: add missing events to x/profiles
## Description
This PR adds missing events inside the `x/profiles` modukes

Closes: #721

Depends-On: #750

---

### Author Checklist

*All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.*

I have...

- [ ] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
- [ ] added `!` to the type prefix if API or client breaking change
- [ ] targeted the correct branch (see [PR Targeting](https://github.com/desmos-labs/desmos/blob/master/CONTRIBUTING.md#pr-targeting))
- [ ] provided a link to the relevant issue or specification
- [ ] followed the guidelines for [building modules](https://docs.cosmos.network/v0.44/building-modules/intro.html)
- [ ] included the necessary unit and integration [tests](https://github.com/desmos-labs/desmos/blob/master/CONTRIBUTING.md#testing)
- [ ] added a changelog entry to `CHANGELOG.md`
- [ ] included comments for [documenting Go code](https://blog.golang.org/godoc)
- [ ] updated the relevant documentation or specification
- [ ] reviewed "Files changed" and left comments if necessary
- [ ] confirmed all CI checks have passed

### Reviewers Checklist

*All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.*

I have...

- [ ] confirmed the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
- [ ] confirmed `!` in the type prefix if API or client breaking change
- [ ] confirmed all author checklist items have been addressed
- [ ] reviewed state machine logic
- [ ] reviewed API design and naming
- [ ] reviewed documentation is accurate
- [ ] reviewed tests and test coverage
- [ ] manually tested (if applicable)

codecov[bot]: # [Codecov](https://codecov.io/gh/desmos-labs/desmos/pull/759?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=desmos-labs) Report
> Merging [#759](https://codecov.io/gh/desmos-labs/desmos/pull/759?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=desmos-labs) (f4c1721) into [master](https://codecov.io/gh/desmos-labs/desmos/commit/16610e9f54267a60a2e7cc9b305f4da38a20e3e3?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=desmos-labs) (16610e9) will **increase** coverage by `0.81%`.
> The diff coverage is `82.49%`.

[![Impacted file tree graph](https://codecov.io/gh/desmos-labs/desmos/pull/759/graphs/tree.svg?width=650&height=150&src=pr&token=c87ulmWL91&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=desmos-labs)](https://codecov.io/gh/desmos-labs/desmos/pull/759?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=desmos-labs)

```diff
@@            Coverage Diff             @@
##           master     #759      +/-   ##
==========================================
+ Coverage   80.50%   81.32%   +0.81%     
==========================================
  Files          68       77       +9     
  Lines        6008     6239     +231     
==========================================
+ Hits         4837     5074     +237     
- Misses        933      934       +1     
+ Partials      238      231       -7     
```


| [Impacted Files](https://codecov.io/gh/desmos-labs/desmos/pull/759?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=desmos-labs) | Coverage Δ | |
|---|---|---|
| [x/commons/commons.go](https://codecov.io/gh/desmos-labs/desmos/pull/759/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=desmos-labs#diff-eC9jb21tb25zL2NvbW1vbnMuZ28=) | `100.00% <ø> (ø)` | |
| [x/profiles/keeper/alias\_functions.go](https://codecov.io/gh/desmos-labs/desmos/pull/759/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=desmos-labs#diff-eC9wcm9maWxlcy9rZWVwZXIvYWxpYXNfZnVuY3Rpb25zLmdv) | `92.85% <ø> (+2.38%)` | :arrow_up: |
| [x/profiles/keeper/genesis.go](https://codecov.io/gh/desmos-labs/desmos/pull/759/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=desmos-labs#diff-eC9wcm9maWxlcy9rZWVwZXIvZ2VuZXNpcy5nbw==) | `80.95% <ø> (-3.67%)` | :arrow_down: |
| [x/profiles/keeper/grpc\_query.go](https://codecov.io/gh/desmos-labs/desmos/pull/759/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=desmos-labs#diff-eC9wcm9maWxlcy9rZWVwZXIvZ3JwY19xdWVyeS5nbw==) | `73.60% <ø> (-0.69%)` | :arrow_down: |
| [x/profiles/keeper/invariants.go](https://codecov.io/gh/desmos-labs/desmos/pull/759/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=desmos-labs#diff-eC9wcm9maWxlcy9rZWVwZXIvaW52YXJpYW50cy5nbw==) | `100.00% <ø> (ø)` | |
| [x/profiles/keeper/msg\_server\_app\_link.go](https://codecov.io/gh/desmos-labs/desmos/pull/759/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=desmos-labs#diff-eC9wcm9maWxlcy9rZWVwZXIvbXNnX3NlcnZlcl9hcHBfbGluay5nbw==) | `0.00% <0.00%> (ø)` | |
| [x/profiles/types/codec.go](https://codecov.io/gh/desmos-labs/desmos/pull/759/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=desmos-labs#diff-eC9wcm9maWxlcy90eXBlcy9jb2RlYy5nbw==) | `100.00% <ø> (ø)` | |
| [x/relationships/client/cli/tx.go](https://codecov.io/gh/desmos-labs/desmos/pull/759/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=desmos-labs#diff-eC9yZWxhdGlvbnNoaXBzL2NsaWVudC9jbGkvdHguZ28=) | `67.88% <0.00%> (ø)` | |
| [x/relationships/types/query.go](https://codecov.io/gh/desmos-labs/desmos/pull/759/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=desmos-labs#diff-eC9yZWxhdGlvbnNoaXBzL3R5cGVzL3F1ZXJ5Lmdv) | `0.00% <0.00%> (ø)` | |
| [x/relationships/client/cli/query.go](https://codecov.io/gh/desmos-labs/desmos/pull/759/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=desmos-labs#diff-eC9yZWxhdGlvbnNoaXBzL2NsaWVudC9jbGkvcXVlcnkuZ28=) | `53.76% <53.76%> (ø)` | |
| ... and [42 more](https://codecov.io/gh/desmos-labs/desmos/pull/759/diff?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=desmos-labs) | |

------

[Continue to review full report at Codecov](https://codecov.io/gh/desmos-labs/desmos/pull/759?src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=desmos-labs).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=desmos-labs)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/desmos-labs/desmos/pull/759?src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=desmos-labs). Last update [16610e9...f4c1721](https://codecov.io/gh/desmos-labs/desmos/pull/759?src=pr&el=lastupdated&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=desmos-labs). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=desmos-labs).


Patch:
diff --git a/.changeset/entries/0c6dff117a0e7eafc80aa5a3932b2f5456d2e7c4056492c123863d9ff82e07b3.yaml b/.changeset/entries/0c6dff117a0e7eafc80aa5a3932b2f5456d2e7c4056492c123863d9ff82e07b3.yaml
new file mode 100644
index 00000000..1aaecff9
--- /dev/null
+++ b/.changeset/entries/0c6dff117a0e7eafc80aa5a3932b2f5456d2e7c4056492c123863d9ff82e07b3.yaml
@@ -0,0 +1,6 @@
+type: fix
+module: x/profiles
+pull_request: 759
+description: Added the emission of missing events
+backward_compatible: true
+date: 2022-02-28T13:18:32.965500736Z
diff --git a/x/profiles/keeper/msg_server_app_link.go b/x/profiles/keeper/msg_server_app_link.go
index 46645166..602d7047 100644
--- a/x/profiles/keeper/msg_server_app_link.go
+++ b/x/profiles/keeper/msg_server_app_link.go
@@ -47,6 +47,11 @@ func (k Keeper) LinkApplication(
 		"account", msg.Sender)
 
 	ctx.EventManager().EmitEvents(sdk.Events{
+		sdk.NewEvent(
+			sdk.EventTypeMessage,
+			sdk.NewAttribute(sdk.AttributeKeyModule, types.AttributeValueCategory),
+			sdk.NewAttribute(sdk.AttributeKeySender, msg.Sender),
+		),
 		sdk.NewEvent(
 			types.EventTypesApplicationLinkCreated,
 			sdk.NewAttribute(types.AttributeKeyUser, msg.Sender),
@@ -54,10 +59,6 @@ func (k Keeper) LinkApplication(
 			sdk.NewAttribute(types.AttributeKeyApplicationUsername, msg.LinkData.Username),
 			sdk.NewAttribute(types.AttributeKeyApplicationLinkCreationTime, ctx.BlockTime().Format(time.RFC3339)),
 		),
-		sdk.NewEvent(
-			sdk.EventTypeMessage,
-			sdk.NewAttribute(sdk.AttributeKeyModule, types.ModuleName),
-		),
 	})
 
 	return &types.MsgLinkApplicationResponse{}, nil
@@ -79,16 +80,17 @@ func (k msgServer) UnlinkApplication(
 		"account", msg.Signer)
 
 	ctx.EventManager().EmitEvents(sdk.Events{
+		sdk.NewEvent(
+			sdk.EventTypeMessage,
+			sdk.NewAttribute(sdk.AttributeKeyModule, types.AttributeValueCategory),
+			sdk.NewAttribute(sdk.AttributeKeySender, msg.Signer),
+		),
 		sdk.NewEvent(
 			types.EventTypeApplicationLinkDeleted,
 			sdk.NewAttribute(types.AttributeKeyUser, msg.Signer),
 			sdk.NewAttribute(types.AttributeKeyApplicationName, msg.Application),
 			sdk.NewAttribute(types.AttributeKeyApplicationUsername, msg.Username),
 		),
-		sdk.NewEvent(
-			sdk.EventTypeMessage,
-			sdk.NewAttribute(sdk.AttributeKeyModule, types.ModuleName),
-		),
 	})
 
 	return &types.MsgUnlinkApplicationResponse{}, nil
diff --git a/x/profiles/keeper/msg_server_chain_link.go b/x/profiles/keeper/msg_server_chain_link.go
index 1290f4d7..d152e509 100644
--- a/x/profiles/keeper/msg_server_chain_link.go
+++ b/x/profiles/keeper/msg_server_chain_link.go
@@ -25,10 +25,10 @@ func (k msgServer) LinkChainAccount(goCtx context.Context, msg *types.MsgLinkCha
 
 	ctx.EventManager().EmitEvent(sdk.NewEvent(
 		types.EventTypeLinkChainAccount,
-		sdk.NewAttribute(types.AttributeChainLinkSourceAddress, srcAddrData.GetValue()),
-		sdk.NewAttribute(types.AttributeChainLinkSourceChainName, msg.ChainConfig.Name),
-		sdk.NewAttribute(types.AttributeChainLinkDestinationAddress, msg.Signer),
-		sdk.NewAttribute(types.AttributeChainLinkCreationTime, link.CreationTime.Format(time.RFC3339Nano)),
+		sdk.NewAttribute(types.AttributeKeyChainLinkSourceAddress, srcAddrData.GetValue()),
+		sdk.NewAttribute(types.AttributeKeyChainLinkSourceChainName, msg.ChainConfig.Name),
+		sdk.NewAttribute(types.AttributeKeyChainLinkDestinationAddress, msg.Signer),
+		sdk.NewAttribute(types.AttributeKeyChainLinkCreationTime, link.CreationTime.Format(time.RFC3339Nano)),
 	))
 
 	return &types.MsgLinkChainAccountResponse{}, nil
@@ -43,9 +43,9 @@ func (k msgServer) UnlinkChainAccount(goCtx context.Context, msg *types.MsgUnlin
 
 	ctx.EventManager().EmitEvent(sdk.NewEvent(
 		types.EventTypeUnlinkChainAccount,
-		sdk.NewAttribute(types.AttributeChainLinkSourceAddress, msg.Target),
-		sdk.NewAttribute(types.AttributeChainLinkSourceChainName, msg.ChainName),
-		sdk.NewAttribute(types.AttributeChainLinkDestinationAddress, msg.Owner),
+		sdk.NewAttribute(types.AttributeKeyChainLinkSourceAddress, msg.Target),
+		sdk.NewAttribute(types.AttributeKeyChainLinkSourceChainName, msg.ChainName),
+		sdk.NewAttribute(types.AttributeKeyChainLinkDestinationAddress, msg.Owner),
 	))
 
 	return &types.MsgUnlinkChainAccountResponse{}, nil
diff --git a/x/profiles/keeper/msg_server_dtag_transfers.go b/x/profiles/keeper/msg_server_dtag_transfers.go
index f27ba0c9..04aaec89 100644
--- a/x/profiles/keeper/msg_server_dtag_transfers.go
+++ b/x/profiles/keeper/msg_server_dtag_transfers.go
@@ -42,12 +42,19 @@ func (k msgServer) RequestDTagTransfer(goCtx context.Context, msg *types.MsgRequ
 		return nil, err
 	}
 
-	ctx.EventManager().EmitEvent(sdk.NewEvent(
-		types.EventTypeDTagTransferRequest,
-		sdk.NewAttribute(types.AttributeDTagToTrade, dTagToTrade),
-		sdk.NewAttribute(types.AttributeRequestSender, transferRequest.Sender),
-		sdk.NewAttribute(types.AttributeRequestReceiver, transferRequest.Receiver),
-	))
+	ctx.EventManager().EmitEvents(sdk.Events{
+		sdk.NewEvent(
+			sdk.EventTypeMessage,
+			sdk.NewAttribute(sdk.AttributeKeyModule, types.AttributeValueCategory),
+			sdk.NewAttribute(sdk.AttributeKeySender, msg.Sender),
+		),
+		sdk.NewEvent(
+			types.EventTypeDTagTransferRequest,
+			sdk.NewAttribute(types.AttributeKeyDTagToTrade, dTagToTrade),
+			sdk.NewAttribute(types.AttributeKeyRequestSender, transferRequest.Sender),
+			sdk.NewAttribute(types.AttributeKeyRequestReceiver, transferRequest.Receiver),
+		),
+	})
 
 	return &types.MsgRequestDTagTransferResponse{}, nil
 }
@@ -60,11 +67,18 @@ func (k msgServer) CancelDTagTransferRequest(goCtx context.Context, msg *types.M
 		return nil, err
 	}
 
-	ctx.EventManager().EmitEvent(sdk.NewEvent(
-		types.EventTypeDTagTransferCancel,
-		sdk.NewAttribute(types.AttributeRequestSender, msg.Sender),
-		sdk.NewAttribute(types.AttributeRequestReceiver, msg.Receiver),
-	))
+	ctx.EventManager().EmitEvents(sdk.Events{
+		sdk.NewEvent(
+			sdk.EventTypeMessage,
+			sdk.NewAttribute(sdk.AttributeKeyModule, types.AttributeValueCategory),
+			sdk.NewAttribute(sdk.AttributeKeySender, msg.Sender),
+		),
+		sdk.NewEvent(
+			types.EventTypeDTagTransferCancel,
+			sdk.NewAttribute(types.AttributeKeyRequestSender, msg.Sender),
+			sdk.NewAttribute(types.AttributeKeyRequestReceiver, msg.Receiver),
+		),
+	})
 
 	return &types.MsgCancelDTagTransferRequestResponse{}, nil
 }
@@ -157,13 +171,20 @@ func (k msgServer) AcceptDTagTransferRequest(goCtx context.Context, msg *types.M
 	k.DeleteAllUserIncomingDTagTransferRequests(ctx, msg.Receiver)
 	k.DeleteAllUserIncomingDTagTransferRequests(ctx, msg.Sender)
 
-	ctx.EventManager().EmitEvent(sdk.NewEvent(
-		types.EventTypeDTagTransferAccept,
-		sdk.NewAttribute(types.AttributeDTagToTrade, dTagToTrade),
-		sdk.NewAttribute(types.AttributeNewDTag, msg.NewDTag),
-		sdk.NewAttribute(types.AttributeRequestSender, msg.Sender),
-		sdk.NewAttribute(types.AttributeRequestReceiver, msg.Receiver),
-	))
+	ctx.EventManager().EmitEvents(sdk.Events{
+		sdk.NewEvent(
+			sdk.EventTypeMessage,
+			sdk.NewAttribute(sdk.AttributeKeyModule, types.AttributeValueCategory),
+			sdk.NewAttribute(sdk.AttributeKeySender, msg.Receiver),
+		),
+		sdk.NewEvent(
+			types.EventTypeDTagTransferAccept,
+			sdk.NewAttribute(types.AttributeKeyDTagToTrade, dTagToTrade),
+			sdk.NewAttribute(types.AttributeKeyNewDTag, msg.NewDTag),
+			sdk.NewAttribute(types.AttributeKeyRequestSender, msg.Sender),
+			sdk.NewAttribute(types.AttributeKeyRequestReceiver, msg.Receiver),
+		),
+	})
 
 	return &types.MsgAcceptDTagTransferRequestResponse{}, nil
 }
@@ -176,11 +197,18 @@ func (k msgServer) RefuseDTagTransferRequest(goCtx context.Context, msg *types.M
 		return nil, err
 	}
 
-	ctx.EventManager().EmitEvent(sdk.NewEvent(
-		types.EventTypeDTagTransferRefuse,
-		sdk.NewAttribute(types.AttributeRequestSender, msg.Sender),
-		sdk.NewAttribute(types.AttributeRequestReceiver, msg.Receiver),
-	))
+	ctx.EventManager().EmitEvents(sdk.Events{
+		sdk.NewEvent(
+			sdk.EventTypeMessage,
+			sdk.NewAttribute(sdk.AttributeKeyModule, types.AttributeValueCategory),
+			sdk.NewAttribute(sdk.AttributeKeySender, msg.Receiver),
+		),
+		sdk.NewEvent(
+			types.EventTypeDTagTransferRefuse,
+			sdk.NewAttribute(types.AttributeKeyRequestSender, msg.Sender),
+			sdk.NewAttribute(types.AttributeKeyRequestReceiver, msg.Receiver),
+		),
+	})
 
 	return &types.MsgRefuseDTagTransferRequestResponse{}, nil
 }
diff --git a/x/profiles/keeper/msgs_server_profile.go b/x/profiles/keeper/msgs_server_profile.go
index b20e01b3..84721d20 100644
--- a/x/profiles/keeper/msgs_server_profile.go
+++ b/x/profiles/keeper/msgs_server_profile.go
@@ -66,12 +66,19 @@ func (k msgServer) SaveProfile(goCtx context.Context, msg *types.MsgSaveProfile)
 		return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, err.Error())
 	}
 
-	ctx.EventManager().EmitEvent(sdk.NewEvent(
-		types.EventTypeProfileSaved,
-		sdk.NewAttribute(types.AttributeProfileDTag, updated.DTag),
-		sdk.NewAttribute(types.AttributeProfileCreator, updated.GetAddress().String()),
-		sdk.NewAttribute(types.AttributeProfileCreationTime, updated.CreationDate.Format(time.RFC3339Nano)),
-	))
+	ctx.EventManager().EmitEvents(sdk.Events{
+		sdk.NewEvent(
+			sdk.EventTypeMessage,
+			sdk.NewAttribute(sdk.AttributeKeyModule, types.AttributeValueCategory),
+			sdk.NewAttribute(sdk.AttributeKeySender, msg.Creator),
+		),
+		sdk.NewEvent(
+			types.EventTypeProfileSaved,
+			sdk.NewAttribute(types.AttributeKeyProfileDTag, updated.DTag),
+			sdk.NewAttribute(types.AttributeKeyProfileCreator, updated.GetAddress().String()),
+			sdk.NewAttribute(types.AttributeKeyProfileCreationTime, updated.CreationDate.Format(time.RFC3339Nano)),
+		),
+	})
 
 	return &types.MsgSaveProfileResponse{}, nil
 }
@@ -84,10 +91,17 @@ func (k msgServer) DeleteProfile(goCtx context.Context, msg *types.MsgDeleteProf
 		return nil, err
 	}
 
-	ctx.EventManager().EmitEvent(sdk.NewEvent(
-		types.EventTypeProfileDeleted,
-		sdk.NewAttribute(types.AttributeProfileCreator, msg.Creator),
-	))
+	ctx.EventManager().EmitEvents(sdk.Events{
+		sdk.NewEvent(
+			sdk.EventTypeMessage,
+			sdk.NewAttribute(sdk.AttributeKeyModule, types.AttributeValueCategory),
+			sdk.NewAttribute(sdk.AttributeKeySender, msg.Creator),
+		),
+		sdk.NewEvent(
+			types.EventTypeProfileDeleted,
+			sdk.NewAttribute(types.AttributeKeyProfileCreator, msg.Creator),
+		),
+	})
 
 	return &types.MsgDeleteProfileResponse{}, nil
 }
diff --git a/x/profiles/module_ibc.go b/x/profiles/module_ibc.go
index d74559ff..48343bd7 100644
--- a/x/profiles/module_ibc.go
+++ b/x/profiles/module_ibc.go
@@ -225,9 +225,9 @@ func handleLinkChainAccountPacketData(
 		sdk.NewEvent(
 			types.EventTypeLinkChainAccountPacket,
 			sdk.NewAttribute(sdk.AttributeKeyModule, types.ModuleName),
-			sdk.NewAttribute(types.AttributeChainLinkSourceAddress, address.GetValue()),
-			sdk.NewAttribute(types.AttributeChainLinkSourceChainName, packetData.SourceChainConfig.Name),
-			sdk.NewAttribute(types.AttributeChainLinkDestinationAddress, packetData.DestinationAddress),
+			sdk.NewAttribute(types.AttributeKeyChainLinkSourceAddress, address.GetValue()),
+			sdk.NewAttribute(types.AttributeKeyChainLinkSourceChainName, packetData.SourceChainConfig.Name),
+			sdk.NewAttribute(types.AttributeKeyChainLinkDestinationAddress, packetData.DestinationAddress),
 			sdk.NewAttribute(types.AttributeKeyAckSuccess, fmt.Sprintf("%t", true)),
 		),
 	)
diff --git a/x/profiles/types/events.go b/x/profiles/types/events.go
index e498e690..598bccf8 100644
--- a/x/profiles/types/events.go
+++ b/x/profiles/types/events.go
@@ -3,47 +3,33 @@ package types
 // DONTCOVER
 
 const (
-	EventTypeProfileSaved        = "profile_saved"
-	EventTypeProfileDeleted      = "profile_deleted"
-	EventTypeDTagTransferRequest = "dtag_transfer_request"
-	EventTypeDTagTransferAccept  = "dtag_transfer_accept"
-	EventTypeDTagTransferRefuse  = "dtag_transfer_refuse"
-	EventTypeDTagTransferCancel  = "dtag_transfer_cancel"
-
-	AttributeProfileDTag         = "profile_dtag"
-	AttributeProfileCreator      = "profile_creator"
-	AttributeProfileCreationTime = "profile_creation_time"
-
-	AttributeRequestReceiver = "request_receiver"
-	AttributeRequestSender   = "request_sender"
-	AttributeDTagToTrade     = "dtag_to_trade"
-	AttributeNewDTag         = "new_dtag"
-
-	EventTypeBlockUser   = "block_user"
-	EventTypeUnblockUser = "unblock_user"
-
-	AttributeKeyUserBlockBlocker = "blocker"
-	AttributeKeyUserBlockBlocked = "blocked"
-	AttributeKeyUserBlockReason  = "reason"
-	AttributeKeySubspace         = "subspace"
-
-	EventTypeLinkChainAccount   = "link_chain_account"
-	EventTypeUnlinkChainAccount = "unlink_chain_account"
-
-	AttributeChainLinkSourceAddress      = "chain_link_account_target"
-	AttributeChainLinkDestinationAddress = "chain_link_account_owner"
-	AttributeChainLinkSourceChainName    = "chain_link_source_chain_name"
-	AttributeChainLinkCreationTime       = "chain_link_creation_time"
-
-	AttributeKeyAckSuccess          = "success"
-	EventTypeLinkChainAccountPacket = "link_chain_account_packet"
-
+	EventTypeProfileSaved            = "profile_saved"
+	EventTypeProfileDeleted          = "profile_deleted"
+	EventTypeDTagTransferRequest     = "dtag_transfer_request"
+	EventTypeDTagTransferAccept      = "dtag_transfer_accept"
+	EventTypeDTagTransferRefuse      = "dtag_transfer_refuse"
+	EventTypeDTagTransferCancel      = "dtag_transfer_cancel"
+	EventTypeLinkChainAccount        = "link_chain_account"
+	EventTypeUnlinkChainAccount      = "unlink_chain_account"
+	EventTypeLinkChainAccountPacket  = "link_chain_account_packet"
 	EventTypePacket                  = "profiles_verification_packet"
 	EventTypeTimeout                 = "timeout"
 	EventTypesApplicationLinkCreated = "application_link_created"
 	EventTypesApplicationLinkSaved   = "application_link_saved"
 	EventTypeApplicationLinkDeleted  = "application_link_deleted"
 
+	AttributeKeyProfileDTag                 = "profile_dtag"
+	AttributeKeyProfileCreator              = "profile_creator"
+	AttributeKeyProfileCreationTime         = "profile_creation_time"
+	AttributeKeyRequestReceiver             = "request_receiver"
+	AttributeKeyRequestSender               = "request_sender"
+	AttributeKeyDTagToTrade                 = "dtag_to_trade"
+	AttributeKeyNewDTag                     = "new_dtag"
+	AttributeKeyChainLinkSourceAddress      = "chain_link_account_target"
+	AttributeKeyChainLinkDestinationAddress = "chain_link_account_owner"
+	AttributeKeyChainLinkSourceChainName    = "chain_link_source_chain_name"
+	AttributeKeyChainLinkCreationTime       = "chain_link_creation_time"
+	AttributeKeyAckSuccess                  = "success"
 	AttributeKeyUser                        = "user"
 	AttributeKeyApplicationName             = "application_name"
 	AttributeKeyApplicationUsername         = "application_username"
@@ -51,8 +37,9 @@ const (
 	AttributeKeyOracleID                    = "oracle_id"
 	AttributeKeyClientID                    = "client_id"
 	AttributeKeyRequestID                   = "request_id"
-	AttributeKeyRequestKey                  = "request_key"
 	AttributeKeyResolveStatus               = "resolve_status"
 	AttributeKeyAck                         = "acknowledgement"
 	AttributeKeyAckError                    = "error"
+
+	AttributeValueCategory = ModuleName
 )


Test patch:
diff --git a/app/sim_test.go b/app/sim_test.go
index fe051162..5689cea2 100644
--- a/app/sim_test.go
+++ b/app/sim_test.go
@@ -8,6 +8,8 @@ import (
 	"path/filepath"
 	"testing"
 
+	relationshipstypes "github.com/desmos-labs/desmos/v2/x/relationships/types"
+
 	authzkeeper "github.com/cosmos/cosmos-sdk/x/authz/keeper"
 	minttypes "github.com/cosmos/cosmos-sdk/x/mint/types"
 
@@ -229,6 +231,7 @@ func TestAppImportExport(t *testing.T) {
 
 		{app.keys[subspacestypes.StoreKey], newApp.keys[subspacestypes.StoreKey], [][]byte{}},
 		{app.keys[profilestypes.StoreKey], newApp.keys[profilestypes.StoreKey], [][]byte{}},
+		{app.keys[relationshipstypes.StoreKey], newApp.keys[relationshipstypes.StoreKey], [][]byte{}},
 	}
 
 	for _, skp := range storeKeysPrefixes {
diff --git a/x/profiles/keeper/msg_server_chain_link_test.go b/x/profiles/keeper/msg_server_chain_link_test.go
index 763228a6..e323a007 100644
--- a/x/profiles/keeper/msg_server_chain_link_test.go
+++ b/x/profiles/keeper/msg_server_chain_link_test.go
@@ -109,10 +109,10 @@ func (suite *KeeperTestSuite) TestMsgServer_LinkChainAccount() {
 			expEvents: sdk.Events{
 				sdk.NewEvent(
 					types.EventTypeLinkChainAccount,
-					sdk.NewAttribute(types.AttributeChainLinkSourceAddress, srcAddr),
-					sdk.NewAttribute(types.AttributeChainLinkSourceChainName, "cosmos"),
-					sdk.NewAttribute(types.AttributeChainLinkDestinationAddress, destAddr),
-					sdk.NewAttribute(types.AttributeChainLinkCreationTime, blockTime.Format(time.RFC3339Nano)),
+					sdk.NewAttribute(types.AttributeKeyChainLinkSourceAddress, srcAddr),
+					sdk.NewAttribute(types.AttributeKeyChainLinkSourceChainName, "cosmos"),
+					sdk.NewAttribute(types.AttributeKeyChainLinkDestinationAddress, destAddr),
+					sdk.NewAttribute(types.AttributeKeyChainLinkCreationTime, blockTime.Format(time.RFC3339Nano)),
 				),
 			},
 			check: func(ctx sdk.Context) {
@@ -200,9 +200,9 @@ func (suite *KeeperTestSuite) TestMsgServer_UnlinkChainAccount() {
 			expEvents: sdk.Events{
 				sdk.NewEvent(
 					types.EventTypeUnlinkChainAccount,
-					sdk.NewAttribute(types.AttributeChainLinkSourceAddress, "cosmos1cjf97gpzwmaf30pzvaargfgr884mpp5ak8f7ns"),
-					sdk.NewAttribute(types.AttributeChainLinkSourceChainName, "cosmos"),
-					sdk.NewAttribute(types.AttributeChainLinkDestinationAddress, "cosmos1y54exmx84cqtasvjnskf9f63djuuj68p7hqf47"),
+					sdk.NewAttribute(types.AttributeKeyChainLinkSourceAddress, "cosmos1cjf97gpzwmaf30pzvaargfgr884mpp5ak8f7ns"),
+					sdk.NewAttribute(types.AttributeKeyChainLinkSourceChainName, "cosmos"),
+					sdk.NewAttribute(types.AttributeKeyChainLinkDestinationAddress, "cosmos1y54exmx84cqtasvjnskf9f63djuuj68p7hqf47"),
 				),
 			},
 			check: func(ctx sdk.Context) {
diff --git a/x/profiles/keeper/msg_server_dtag_transfers_test.go b/x/profiles/keeper/msg_server_dtag_transfers_test.go
index 43e7148d..b1231041 100644
--- a/x/profiles/keeper/msg_server_dtag_transfers_test.go
+++ b/x/profiles/keeper/msg_server_dtag_transfers_test.go
@@ -77,11 +77,16 @@ func (suite *KeeperTestSuite) TestMsgServer_RequestDTagTransfer() {
 			),
 			shouldErr: false,
 			expEvents: sdk.Events{
+				sdk.NewEvent(
+					sdk.EventTypeMessage,
+					sdk.NewAttribute(sdk.AttributeKeyModule, types.AttributeValueCategory),
+					sdk.NewAttribute(sdk.AttributeKeySender, "cosmos1y54exmx84cqtasvjnskf9f63djuuj68p7hqf47"),
+				),
 				sdk.NewEvent(
 					types.EventTypeDTagTransferRequest,
-					sdk.NewAttribute(types.AttributeDTagToTrade, fmt.Sprintf("%s-dtag", "cosmos1cjf97gpzwmaf30pzvaargfgr884mpp5ak8f7ns")),
-					sdk.NewAttribute(types.AttributeRequestSender, "cosmos1y54exmx84cqtasvjnskf9f63djuuj68p7hqf47"),
-					sdk.NewAttribute(types.AttributeRequestReceiver, "cosmos1cjf97gpzwmaf30pzvaargfgr884mpp5ak8f7ns"),
+					sdk.NewAttribute(types.AttributeKeyDTagToTrade, fmt.Sprintf("%s-dtag", "cosmos1cjf97gpzwmaf30pzvaargfgr884mpp5ak8f7ns")),
+					sdk.NewAttribute(types.AttributeKeyRequestSender, "cosmos1y54exmx84cqtasvjnskf9f63djuuj68p7hqf47"),
+					sdk.NewAttribute(types.AttributeKeyRequestReceiver, "cosmos1cjf97gpzwmaf30pzvaargfgr884mpp5ak8f7ns"),
 				),
 			},
 		},
@@ -140,10 +145,15 @@ func (suite *KeeperTestSuite) TestMsgServer_CancelDTagTransfer() {
 			),
 			shouldErr: false,
 			expEvents: sdk.Events{
+				sdk.NewEvent(
+					sdk.EventTypeMessage,
+					sdk.NewAttribute(sdk.AttributeKeyModule, types.AttributeValueCategory),
+					sdk.NewAttribute(sdk.AttributeKeySender, "cosmos1y54exmx84cqtasvjnskf9f63djuuj68p7hqf47"),
+				),
 				sdk.NewEvent(
 					types.EventTypeDTagTransferCancel,
-					sdk.NewAttribute(types.AttributeRequestSender, "cosmos1y54exmx84cqtasvjnskf9f63djuuj68p7hqf47"),
-					sdk.NewAttribute(types.AttributeRequestReceiver, "cosmos1cjf97gpzwmaf30pzvaargfgr884mpp5ak8f7ns"),
+					sdk.NewAttribute(types.AttributeKeyRequestSender, "cosmos1y54exmx84cqtasvjnskf9f63djuuj68p7hqf47"),
+					sdk.NewAttribute(types.AttributeKeyRequestReceiver, "cosmos1cjf97gpzwmaf30pzvaargfgr884mpp5ak8f7ns"),
 				),
 			},
 		},
@@ -277,12 +287,17 @@ func (suite *KeeperTestSuite) TestMsgServer_AcceptDTagTransfer() {
 			),
 			shouldErr: false,
 			expEvents: sdk.Events{
+				sdk.NewEvent(
+					sdk.EventTypeMessage,
+					sdk.NewAttribute(sdk.AttributeKeyModule, types.AttributeValueCategory),
+					sdk.NewAttribute(sdk.AttributeKeySender, "cosmos1cjf97gpzwmaf30pzvaargfgr884mpp5ak8f7ns"),
+				),
 				sdk.NewEvent(
 					types.EventTypeDTagTransferAccept,
-					sdk.NewAttribute(types.AttributeDTagToTrade, "DTag"),
-					sdk.NewAttribute(types.AttributeNewDTag, "NewDtag"),
-					sdk.NewAttribute(types.AttributeRequestSender, "cosmos1y54exmx84cqtasvjnskf9f63djuuj68p7hqf47"),
-					sdk.NewAttribute(types.AttributeRequestReceiver, "cosmos1cjf97gpzwmaf30pzvaargfgr884mpp5ak8f7ns"),
+					sdk.NewAttribute(types.AttributeKeyDTagToTrade, "DTag"),
+					sdk.NewAttribute(types.AttributeKeyNewDTag, "NewDtag"),
+					sdk.NewAttribute(types.AttributeKeyRequestSender, "cosmos1y54exmx84cqtasvjnskf9f63djuuj68p7hqf47"),
+					sdk.NewAttribute(types.AttributeKeyRequestReceiver, "cosmos1cjf97gpzwmaf30pzvaargfgr884mpp5ak8f7ns"),
 				),
 			},
 		},
@@ -306,12 +321,17 @@ func (suite *KeeperTestSuite) TestMsgServer_AcceptDTagTransfer() {
 				"cosmos1cjf97gpzwmaf30pzvaargfgr884mpp5ak8f7ns",
 			),
 			expEvents: sdk.Events{
+				sdk.NewEvent(
+					sdk.EventTypeMessage,
+					sdk.NewAttribute(sdk.AttributeKeyModule, types.AttributeValueCategory),
+					sdk.NewAttribute(sdk.AttributeKeySender, "cosmos1cjf97gpzwmaf30pzvaargfgr884mpp5ak8f7ns"),
+				),
 				sdk.NewEvent(
 					types.EventTypeDTagTransferAccept,
-					sdk.NewAttribute(types.AttributeDTagToTrade, "DTag"),
-					sdk.NewAttribute(types.AttributeNewDTag, "NewDtag"),
-					sdk.NewAttribute(types.AttributeRequestSender, "cosmos1y54exmx84cqtasvjnskf9f63djuuj68p7hqf47"),
-					sdk.NewAttribute(types.AttributeRequestReceiver, "cosmos1cjf97gpzwmaf30pzvaargfgr884mpp5ak8f7ns"),
+					sdk.NewAttribute(types.AttributeKeyDTagToTrade, "DTag"),
+					sdk.NewAttribute(types.AttributeKeyNewDTag, "NewDtag"),
+					sdk.NewAttribute(types.AttributeKeyRequestSender, "cosmos1y54exmx84cqtasvjnskf9f63djuuj68p7hqf47"),
+					sdk.NewAttribute(types.AttributeKeyRequestReceiver, "cosmos1cjf97gpzwmaf30pzvaargfgr884mpp5ak8f7ns"),
 				),
 			},
 		},
@@ -337,12 +357,17 @@ func (suite *KeeperTestSuite) TestMsgServer_AcceptDTagTransfer() {
 				"cosmos1cjf97gpzwmaf30pzvaargfgr884mpp5ak8f7ns",
 			),
 			expEvents: sdk.Events{
+				sdk.NewEvent(
+					sdk.EventTypeMessage,
+					sdk.NewAttribute(sdk.AttributeKeyModule, types.AttributeValueCategory),
+					sdk.NewAttribute(sdk.AttributeKeySender, "cosmos1cjf97gpzwmaf30pzvaargfgr884mpp5ak8f7ns"),
+				),
 				sdk.NewEvent(
 					types.EventTypeDTagTransferAccept,
-					sdk.NewAttribute(types.AttributeDTagToTrade, "receiverDTag"),
-					sdk.NewAttribute(types.AttributeNewDTag, "senderDTag"),
-					sdk.NewAttribute(types.AttributeRequestSender, "cosmos1y54exmx84cqtasvjnskf9f63djuuj68p7hqf47"),
-					sdk.NewAttribute(types.AttributeRequestReceiver, "cosmos1cjf97gpzwmaf30pzvaargfgr884mpp5ak8f7ns"),
+					sdk.NewAttribute(types.AttributeKeyDTagToTrade, "receiverDTag"),
+					sdk.NewAttribute(types.AttributeKeyNewDTag, "senderDTag"),
+					sdk.NewAttribute(types.AttributeKeyRequestSender, "cosmos1y54exmx84cqtasvjnskf9f63djuuj68p7hqf47"),
+					sdk.NewAttribute(types.AttributeKeyRequestReceiver, "cosmos1cjf97gpzwmaf30pzvaargfgr884mpp5ak8f7ns"),
 				),
 			},
 			check: func(ctx sdk.Context) {
@@ -413,10 +438,15 @@ func (suite *KeeperTestSuite) TestMsgServer_RefuseDTagTransfer() {
 			),
 			shouldErr: false,
 			expEvents: sdk.Events{
+				sdk.NewEvent(
+					sdk.EventTypeMessage,
+					sdk.NewAttribute(sdk.AttributeKeyModule, types.AttributeValueCategory),
+					sdk.NewAttribute(sdk.AttributeKeySender, "cosmos1cjf97gpzwmaf30pzvaargfgr884mpp5ak8f7ns"),
+				),
 				sdk.NewEvent(
 					types.EventTypeDTagTransferRefuse,
-					sdk.NewAttribute(types.AttributeRequestSender, "cosmos1y54exmx84cqtasvjnskf9f63djuuj68p7hqf47"),
-					sdk.NewAttribute(types.AttributeRequestReceiver, "cosmos1cjf97gpzwmaf30pzvaargfgr884mpp5ak8f7ns"),
+					sdk.NewAttribute(types.AttributeKeyRequestSender, "cosmos1y54exmx84cqtasvjnskf9f63djuuj68p7hqf47"),
+					sdk.NewAttribute(types.AttributeKeyRequestReceiver, "cosmos1cjf97gpzwmaf30pzvaargfgr884mpp5ak8f7ns"),
 				),
 			},
 		},
diff --git a/x/profiles/keeper/msgs_server_profile_test.go b/x/profiles/keeper/msgs_server_profile_test.go
index c6f304d1..ac96172b 100644
--- a/x/profiles/keeper/msgs_server_profile_test.go
+++ b/x/profiles/keeper/msgs_server_profile_test.go
@@ -41,11 +41,16 @@ func (suite *KeeperTestSuite) TestMsgServer_SaveProfile() {
 				suite.Require().True(found)
 			},
 			expEvents: sdk.Events{
+				sdk.NewEvent(
+					sdk.EventTypeMessage,
+					sdk.NewAttribute(sdk.AttributeKeyModule, types.AttributeValueCategory),
+					sdk.NewAttribute(sdk.AttributeKeySender, "cosmos10nsdxxdvy9qka3zv0lzw8z9cnu6kanld8jh773"),
+				),
 				sdk.NewEvent(
 					types.EventTypeProfileSaved,
-					sdk.NewAttribute(types.AttributeProfileDTag, "custom_dtag"),
-					sdk.NewAttribute(types.AttributeProfileCreator, "cosmos10nsdxxdvy9qka3zv0lzw8z9cnu6kanld8jh773"),
-					sdk.NewAttribute(types.AttributeProfileCreationTime, blockTime.Format(time.RFC3339)),
+					sdk.NewAttribute(types.AttributeKeyProfileDTag, "custom_dtag"),
+					sdk.NewAttribute(types.AttributeKeyProfileCreator, "cosmos10nsdxxdvy9qka3zv0lzw8z9cnu6kanld8jh773"),
+					sdk.NewAttribute(types.AttributeKeyProfileCreationTime, blockTime.Format(time.RFC3339)),
 				),
 			},
 		},
@@ -75,11 +80,16 @@ func (suite *KeeperTestSuite) TestMsgServer_SaveProfile() {
 				"cosmos10nsdxxdvy9qka3zv0lzw8z9cnu6kanld8jh773",
 			),
 			expEvents: sdk.Events{
+				sdk.NewEvent(
+					sdk.EventTypeMessage,
+					sdk.NewAttribute(sdk.AttributeKeyModule, types.AttributeValueCategory),
+					sdk.NewAttribute(sdk.AttributeKeySender, "cosmos10nsdxxdvy9qka3zv0lzw8z9cnu6kanld8jh773"),
+				),
 				sdk.NewEvent(
 					types.EventTypeProfileSaved,
-					sdk.NewAttribute(types.AttributeProfileDTag, "other_dtag"),
-					sdk.NewAttribute(types.AttributeProfileCreator, "cosmos10nsdxxdvy9qka3zv0lzw8z9cnu6kanld8jh773"),
-					sdk.NewAttribute(types.AttributeProfileCreationTime, blockTime.Format(time.RFC3339)),
+					sdk.NewAttribute(types.AttributeKeyProfileDTag, "other_dtag"),
+					sdk.NewAttribute(types.AttributeKeyProfileCreator, "cosmos10nsdxxdvy9qka3zv0lzw8z9cnu6kanld8jh773"),
+					sdk.NewAttribute(types.AttributeKeyProfileCreationTime, blockTime.Format(time.RFC3339)),
 				),
 			},
 			check: func(ctx sdk.Context) {
@@ -115,11 +125,16 @@ func (suite *KeeperTestSuite) TestMsgServer_SaveProfile() {
 				"cosmos10nsdxxdvy9qka3zv0lzw8z9cnu6kanld8jh773",
 			),
 			expEvents: sdk.Events{
+				sdk.NewEvent(
+					sdk.EventTypeMessage,
+					sdk.NewAttribute(sdk.AttributeKeyModule, types.AttributeValueCategory),
+					sdk.NewAttribute(sdk.AttributeKeySender, "cosmos10nsdxxdvy9qka3zv0lzw8z9cnu6kanld8jh773"),
+				),
 				sdk.NewEvent(
 					types.EventTypeProfileSaved,
-					sdk.NewAttribute(types.AttributeProfileDTag, "Test"),
-					sdk.NewAttribute(types.AttributeProfileCreator, "cosmos10nsdxxdvy9qka3zv0lzw8z9cnu6kanld8jh773"),
-					sdk.NewAttribute(types.AttributeProfileCreationTime, blockTime.Format(time.RFC3339)),
+					sdk.NewAttribute(types.AttributeKeyProfileDTag, "Test"),
+					sdk.NewAttribute(types.AttributeKeyProfileCreator, "cosmos10nsdxxdvy9qka3zv0lzw8z9cnu6kanld8jh773"),
+					sdk.NewAttribute(types.AttributeKeyProfileCreationTime, blockTime.Format(time.RFC3339)),
 				),
 			},
 			check: func(ctx sdk.Context) {
@@ -193,11 +208,16 @@ func (suite *KeeperTestSuite) TestMsgServer_SaveProfile() {
 				"cosmos1cjf97gpzwmaf30pzvaargfgr884mpp5ak8f7ns",
 			),
 			expEvents: sdk.Events{
+				sdk.NewEvent(
+					sdk.EventTypeMessage,
+					sdk.NewAttribute(sdk.AttributeKeyModule, types.AttributeValueCategory),
+					sdk.NewAttribute(sdk.AttributeKeySender, "cosmos1cjf97gpzwmaf30pzvaargfgr884mpp5ak8f7ns"),
+				),
 				sdk.NewEvent(
 					types.EventTypeProfileSaved,
-					sdk.NewAttribute(types.AttributeProfileDTag, "tomtom"),
-					sdk.NewAttribute(types.AttributeProfileCreator, "cosmos1cjf97gpzwmaf30pzvaargfgr884mpp5ak8f7ns"),
-					sdk.NewAttribute(types.AttributeProfileCreationTime, blockTime.Format(time.RFC3339)),
+					sdk.NewAttribute(types.AttributeKeyProfileDTag, "tomtom"),
+					sdk.NewAttribute(types.AttributeKeyProfileCreator, "cosmos1cjf97gpzwmaf30pzvaargfgr884mpp5ak8f7ns"),
+					sdk.NewAttribute(types.AttributeKeyProfileCreationTime, blockTime.Format(time.RFC3339)),
 				),
 			},
 			check: func(ctx sdk.Context) {
@@ -284,9 +304,14 @@ func (suite *KeeperTestSuite) TestMsgServer_DeleteProfile() {
 			msg:       types.NewMsgDeleteProfile("cosmos10nsdxxdvy9qka3zv0lzw8z9cnu6kanld8jh773"),
 			shouldErr: false,
 			expEvents: sdk.Events{
+				sdk.NewEvent(
+					sdk.EventTypeMessage,
+					sdk.NewAttribute(sdk.AttributeKeyModule, types.AttributeValueCategory),
+					sdk.NewAttribute(sdk.AttributeKeySender, "cosmos10nsdxxdvy9qka3zv0lzw8z9cnu6kanld8jh773"),
+				),
 				sdk.NewEvent(
 					types.EventTypeProfileDeleted,
-					sdk.NewAttribute(types.AttributeProfileCreator, "cosmos10nsdxxdvy9qka3zv0lzw8z9cnu6kanld8jh773"),
+					sdk.NewAttribute(types.AttributeKeyProfileCreator, "cosmos10nsdxxdvy9qka3zv0lzw8z9cnu6kanld8jh773"),
 				),
 			},
 		},