Skip to content

Commit

Permalink
Cherry Pick PR #4336: Fix AppendTags usage error
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessio Treglia authored and alexanderbez committed May 23, 2019
1 parent 68f45db commit d476554
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

## 0.34.5

### Bug Fixes

#### SDK

* [\#4273](https://github.com/cosmos/cosmos-sdk/issues/4273) Fix usage of `AppendTags` in x/staking/handler.go

### Improvements

#### Gaia CLI

* [#4345](https://github.com/cosmos/cosmos-sdk/pull/4345) Update `ledger-cosmos-go`
to v0.10.3.

Expand Down
6 changes: 3 additions & 3 deletions x/staking/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ func EndBlocker(ctx sdk.Context, k keeper.Keeper) ([]abci.ValidatorUpdate, sdk.T
continue
}

resTags.AppendTags(sdk.NewTags(
tags.Action, ActionCompleteUnbonding,
resTags = resTags.AppendTags(sdk.NewTags(
tags.Action, tags.ActionCompleteUnbonding,
tags.Delegator, dvPair.DelegatorAddress.String(),
tags.SrcValidator, dvPair.ValidatorAddress.String(),
))
Expand All @@ -75,7 +75,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.Delegator, dvvTriplet.DelegatorAddress.String(),
tags.SrcValidator, dvvTriplet.ValidatorSrcAddress.String(),
Expand Down

0 comments on commit d476554

Please sign in to comment.