From 1755bf3b4628512d3b553cb313d1a991879adcf1 Mon Sep 17 00:00:00 2001 From: Robert Zaremba Date: Wed, 9 Sep 2020 11:32:58 +0200 Subject: [PATCH] FromABCIEvidence function parameter rename (#7269) --- x/evidence/types/evidence.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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, } }