diff --git a/x/evidence/types/evidence.go b/x/evidence/types/evidence.go index 239aabbb52..fe2abfae07 100644 --- a/x/evidence/types/evidence.go +++ b/x/evidence/types/evidence.go @@ -86,11 +86,11 @@ func (e Equivocation) GetTotalPower() int64 { return 0 } // FromABCIEvidence converts a Tendermint concrete Evidence type to // SDK Evidence using Equivocation as the concrete type. -func FromABCIEvidence(dupVote abci.Evidence) exported.Evidence { +func FromABCIEvidence(e abci.Evidence) exported.Evidence { return &Equivocation{ - Height: dupVote.Height, - Power: dupVote.Validator.Power, - ConsensusAddress: sdk.ConsAddress(dupVote.Validator.Address), - Time: dupVote.Time, + Height: e.Height, + Power: e.Validator.Power, + ConsensusAddress: sdk.ConsAddress(e.Validator.Address), + Time: e.Time, } }