Skip to content

Commit

Permalink
FromABCIEvidence function parameter rename (cosmos#7269)
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-zaremba authored Sep 9, 2020
1 parent 5dc3f4c commit 1755bf3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions x/evidence/types/evidence.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}

0 comments on commit 1755bf3

Please sign in to comment.