Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
samlaf committed Sep 18, 2024
1 parent eb9e6f5 commit 233e19f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion verify/cert.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,5 +109,5 @@ func (cv *CertVerifier) getConfDeepBlockNumber() (*big.Int, error) {
if err != nil {
return nil, fmt.Errorf("failed to get latest block number: %w", err)
}
return big.NewInt(int64(max(uint64(blockNumber-cv.ethConfirmationDepth), 0))), nil
return new(big.Int).SetUint64(max(blockNumber-cv.ethConfirmationDepth, 0)), nil
}

0 comments on commit 233e19f

Please sign in to comment.