Skip to content

Commit

Permalink
fix: duplicate prefix in staking keys (#16176)
Browse files Browse the repository at this point in the history
  • Loading branch information
atheeshp authored May 16, 2023
1 parent 91d14c0 commit 76f0d10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x/staking/types/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ var (
RedelegationKey = []byte{0x34} // key for a redelegation
RedelegationByValSrcIndexKey = []byte{0x35} // prefix for each key for an redelegation, by source validator operator
RedelegationByValDstIndexKey = []byte{0x36} // prefix for each key for an redelegation, by destination validator operator
DelegationByValIndexKey = []byte{0x37} // key for delegations by a validator

UnbondingIDKey = []byte{0x37} // key for the counter for the incrementing id for UnbondingOperations
UnbondingIndexKey = []byte{0x38} // prefix for an index for looking up unbonding operations by their IDs
Expand All @@ -54,6 +53,8 @@ var (
ValidatorUpdatesKey = []byte{0x61} // prefix for the end block validator updates key

ParamsKey = []byte{0x51} // prefix for parameters for module x/staking

DelegationByValIndexKey = []byte{0x71} // key for delegations by a validator
)

// UnbondingType defines the type of unbonding operation
Expand Down

0 comments on commit 76f0d10

Please sign in to comment.