From 262c75286325746094428b94d8ad4bf24d05c2ac Mon Sep 17 00:00:00 2001 From: Alessio Treglia Date: Tue, 14 May 2019 16:13:18 +0100 Subject: [PATCH] Fix AppendTags usage error (#4336) Fix AppendTags usage error Thanks: @mjackson001 for the bug report and patch (original PR: #4274) Closes: #4273 --- .pending/bugfixes/sdk/4273-Fix-usage-of-Ap | 1 + x/staking/handler.go | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 .pending/bugfixes/sdk/4273-Fix-usage-of-Ap diff --git a/.pending/bugfixes/sdk/4273-Fix-usage-of-Ap b/.pending/bugfixes/sdk/4273-Fix-usage-of-Ap new file mode 100644 index 0000000000..d2933b5f73 --- /dev/null +++ b/.pending/bugfixes/sdk/4273-Fix-usage-of-Ap @@ -0,0 +1 @@ +#4273 Fix usage of AppendTags in x/staking/handler.go diff --git a/x/staking/handler.go b/x/staking/handler.go index bfff581f05..762260c9ab 100644 --- a/x/staking/handler.go +++ b/x/staking/handler.go @@ -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(), @@ -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(),