Skip to content

Commit

Permalink
style: fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
samlaf committed Jan 9, 2025
1 parent b99e693 commit 99d8ab7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 4 additions & 4 deletions verify/cert.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,15 +189,15 @@ type NoopCertVerifier struct{}

var _ CertVerifier = (*NoopCertVerifier)(nil)

func (*NoopCertVerifier) verifyBatchConfirmedOnChain(ctx context.Context, batchID uint32, batchMetadata *disperser.BatchMetadata) error {
func (*NoopCertVerifier) verifyBatchConfirmedOnChain(_ context.Context, _ uint32, _ *disperser.BatchMetadata) error {
return nil
}
func (*NoopCertVerifier) verifyMerkleProof(inclusionProof []byte, root []byte, blobIndex uint32, blobHeader BlobHeader) error {
func (*NoopCertVerifier) verifyMerkleProof(_ []byte, _ []byte, _ uint32, _ BlobHeader) error {
return nil
}
func (*NoopCertVerifier) quorumNumbersRequired(opts *bind.CallOpts) ([]byte, error) {
func (*NoopCertVerifier) quorumNumbersRequired(_ *bind.CallOpts) ([]byte, error) {
return nil, nil
}
func (*NoopCertVerifier) quorumAdversaryThresholdPercentages(opts *bind.CallOpts) ([]byte, error) {
func (*NoopCertVerifier) quorumAdversaryThresholdPercentages(_ *bind.CallOpts) ([]byte, error) {
return nil, nil
}
2 changes: 0 additions & 2 deletions verify/verifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ func NewVerifier(cfg *Config, log log.Logger) (*Verifier, error) {
} else {
log.Warn("Certificate verification is disabled")
cv = &NoopCertVerifier{}

}

kzgVerifier, err := kzgverifier.NewVerifier(cfg.KzgConfig, false)
Expand All @@ -99,7 +98,6 @@ func NewVerifier(cfg *Config, log log.Logger) (*Verifier, error) {

// verifies V0 eigenda certificate type
func (v *Verifier) VerifyCert(ctx context.Context, cert *Certificate, args common.VerifyArgs) error {

// 1 - verify batch in the cert is confirmed onchain
err := v.cv.verifyBatchConfirmedOnChain(ctx, cert.Proof().GetBatchId(), cert.Proof().GetBatchMetadata())
if err != nil {
Expand Down

0 comments on commit 99d8ab7

Please sign in to comment.