Fix AppendTags usage error (#4336)

Fix AppendTags usage error

Thanks: @mjackson001 for the bug report and patch (original PR: #4274)
Closes: #4273
This commit is contained in:
Alessio Treglia 2019-05-14 16:13:18 +01:00 committed by GitHub
parent c0486aa532
commit 262c752863
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -0,0 +1 @@
#4273 Fix usage of AppendTags in x/staking/handler.go

View File

@ -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(),