diff --git a/CHANGELOG.md b/CHANGELOG.md index 574d9478..370a4732 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,9 @@ Contains bug fixes. Contains all the PRs that improved the code without changing the behaviors. --> +### Fixed +- Updated event labels on TC delegate events + # v1.0.3-Prerelease ## Added diff --git a/tools/converter.go b/tools/converter.go index cc403f0b..567daef1 100644 --- a/tools/converter.go +++ b/tools/converter.go @@ -105,7 +105,6 @@ func main() { // Module address generation operation if *moduleName != "" { - moduleAddr := GetModuleAddress(*moduleName) fmt.Printf("Generated address for module '%s': %s\n", *moduleName, moduleAddr) diff --git a/x/claim/keeper/msg_server_claim_thorchain.go b/x/claim/keeper/msg_server_claim_thorchain.go index b28a851c..6559a561 100644 --- a/x/claim/keeper/msg_server_claim_thorchain.go +++ b/x/claim/keeper/msg_server_claim_thorchain.go @@ -63,8 +63,8 @@ func (k msgServer) ClaimThorchain(goCtx context.Context, msg *types.MsgClaimThor ctx.EventManager().EmitEvents(sdk.Events{ sdk.NewEvent( types.EventTypeThorchainDelegate, - sdk.NewAttribute(sdk.AttributeKeySender, msg.FromAddress), - sdk.NewAttribute(sdk.AttributeKeyAmount, msg.ToAddress), + sdk.NewAttribute(types.AttributeKeyFromAddress, msg.FromAddress), + sdk.NewAttribute(types.AttributeKeyToAddress, msg.ToAddress), ), }) diff --git a/x/claim/types/types.go b/x/claim/types/types.go index ab1254f4..1fedafa7 100644 --- a/x/claim/types/types.go +++ b/x/claim/types/types.go @@ -1 +1,4 @@ package types + +const AttributeKeyToAddress = "to_address" +const AttributeKeyFromAddress = "from_address"