Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-bowman committed Nov 14, 2024
1 parent 3ad856d commit 12ff316
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions utils/proofs/proofs.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ func (p *CelestiaProof) Validate(dataHash []byte, txHash string) ([]byte, error)
}

func (p *TendermintProof) Validate(dataHash []byte, txHash string) ([]byte, error) {
if p.TxProof == nil {
return nil, fmt.Errorf("TxProof is nil")
}
tmproof, err := tmtypes.TxProofFromProto(*p.TxProof)
if err != nil {
return nil, fmt.Errorf("unable to marshal proof: %w", err)
}
if p.TxProof == nil {
return nil, fmt.Errorf("TxProof is nil")
}
tmproof, err := tmtypes.TxProofFromProto(*p.TxProof)
if err != nil {
return nil, fmt.Errorf("unable to marshal proof: %w", err)
}
err = tmproof.Validate(dataHash)
if err != nil {
return nil, fmt.Errorf("unable to validate proof: %w", err)
Expand Down

0 comments on commit 12ff316

Please sign in to comment.