From 50439016e84c6d7a84a5e0554d1d615e051c0d32 Mon Sep 17 00:00:00 2001 From: John Letey Date: Thu, 20 Oct 2022 13:46:47 +0200 Subject: [PATCH] fix: correctly set KYVE protocol validator vote --- x/gov/keeper/tally.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/gov/keeper/tally.go b/x/gov/keeper/tally.go index 7348483fc06d..0efd15683b47 100644 --- a/x/gov/keeper/tally.go +++ b/x/gov/keeper/tally.go @@ -59,7 +59,7 @@ func (keeper Keeper) Tally(ctx sdk.Context, proposal v1.Proposal) (passes bool, // Check if the voter is a KYVE Protocol validator. if val, ok := currValidators[voter.String()]; ok { val.Vote = vote.Options - currValidators[valAddrStr] = val + currValidators[voter.String()] = val } // iterate over all delegations from voter, deduct from any delegated-to validators