Skip to content

Commit

Permalink
Fix AppendTags usage error (#4336)
Browse files Browse the repository at this point in the history
Fix AppendTags usage error

Thanks: @mjackson001 for the bug report and patch (original PR: #4274)
Closes: #4273
  • Loading branch information
Alessio Treglia authored May 14, 2019
1 parent c0486aa commit 262c752
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .pending/bugfixes/sdk/4273-Fix-usage-of-Ap
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#4273 Fix usage of AppendTags in x/staking/handler.go
4 changes: 2 additions & 2 deletions x/staking/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func EndBlocker(ctx sdk.Context, k keeper.Keeper) ([]abci.ValidatorUpdate, sdk.T
continue
}

resTags.AppendTags(sdk.NewTags(
resTags = resTags.AppendTags(sdk.NewTags(
tags.Action, tags.ActionCompleteUnbonding,
tags.Delegator, dvPair.DelegatorAddress.String(),
tags.SrcValidator, dvPair.ValidatorAddress.String(),
Expand All @@ -82,7 +82,7 @@ func EndBlocker(ctx sdk.Context, k keeper.Keeper) ([]abci.ValidatorUpdate, sdk.T
continue
}

resTags.AppendTags(sdk.NewTags(
resTags = resTags.AppendTags(sdk.NewTags(
tags.Action, tags.ActionCompleteRedelegation,
tags.Category, tags.TxCategory,
tags.Delegator, dvvTriplet.DelegatorAddress.String(),
Expand Down

0 comments on commit 262c752

Please sign in to comment.