Skip to content

Commit

Permalink
chore: gofumpt
Browse files Browse the repository at this point in the history
  • Loading branch information
rach-id committed Jul 26, 2024
1 parent 9ed1575 commit 4d2ac6e
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions pkg/proof/proof.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"bytes"
"errors"
"fmt"

tmbytes "github.com/tendermint/tendermint/libs/bytes"
coretypes "github.com/tendermint/tendermint/proto/tendermint/types"
"math"

"github.com/celestiaorg/rsmt2d"

Expand Down Expand Up @@ -134,13 +134,6 @@ func NewShareInclusionProofFromEDS(
}, nil
}

func safeConvertUint64ToInt(val uint64) (int, error) {
if val > math.MaxInt {
return 0, fmt.Errorf("value %d is too large to convert to int", val)
}
return int(val), nil
}

// CreateShareToRowRootProofs takes a set of shares and their corresponding row roots, and generates
// an NMT inclusion proof of a set of shares, defined by startLeaf and endLeaf, to their corresponding row roots.
func CreateShareToRowRootProofs(squareSize int, rowShares [][]shares.Share, rowRoots [][]byte, startLeaf, endLeaf int) ([]*coretypes.NMTProof, [][]byte, error) {
Expand Down

0 comments on commit 4d2ac6e

Please sign in to comment.