From 76f0d101530ed78befc95506ab473c771d0d8a8c Mon Sep 17 00:00:00 2001 From: atheeshp <59333759+atheeshp@users.noreply.github.com> Date: Tue, 16 May 2023 16:37:19 +0530 Subject: [PATCH] fix: duplicate prefix in staking keys (#16176) --- x/staking/types/keys.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/x/staking/types/keys.go b/x/staking/types/keys.go index b3e9633233..4c905e1110 100644 --- a/x/staking/types/keys.go +++ b/x/staking/types/keys.go @@ -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 @@ -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