Skip to content

Commit

Permalink
Merge pull request #312 from arkeonetwork/update-event-labels
Browse files Browse the repository at this point in the history
fix: tc delegate event labels
  • Loading branch information
shreyasbhat0 authored Jan 10, 2025
2 parents 5ca6d22 + e17fb48 commit 5c69c08
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion tools/converter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions x/claim/keeper/msg_server_claim_thorchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
),
})

Expand Down
3 changes: 3 additions & 0 deletions x/claim/types/types.go
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
package types

const AttributeKeyToAddress = "to_address"
const AttributeKeyFromAddress = "from_address"

0 comments on commit 5c69c08

Please sign in to comment.