From 4d2ac6efafd2845e0155143a444ab87a538c9d9e Mon Sep 17 00:00:00 2001 From: sweexordious Date: Fri, 26 Jul 2024 16:36:32 +0100 Subject: [PATCH] chore: gofumpt --- pkg/proof/proof.go | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/pkg/proof/proof.go b/pkg/proof/proof.go index 07e485a17a..5c4a118c60 100644 --- a/pkg/proof/proof.go +++ b/pkg/proof/proof.go @@ -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" @@ -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) {