diff --git a/types/share_proof_test.go b/types/share_proof_test.go index b199b74d41..4756d38d73 100644 --- a/types/share_proof_test.go +++ b/types/share_proof_test.go @@ -3,8 +3,8 @@ package types import ( "testing" + "github.com/celestiaorg/nmt/pb" "github.com/cometbft/cometbft/pkg/consts" - "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/stretchr/testify/assert" ) @@ -100,7 +100,7 @@ func TestShareProofVerify(t *testing.T) { func mismatchedShareProofs() ShareProof { sp := validShareProof() - sp.ShareProofs = []*types.NMTProof{} + sp.ShareProofs = []*pb.Proof{} return sp } @@ -116,7 +116,7 @@ func mismatchedShares() ShareProof { func validShareProof() ShareProof { return ShareProof{ Data: [][]uint8{{0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1, 0x1, 0x0, 0x0, 0x62, 0xc, 0x0, 0x0, 0x0, 0x2a, 0xf4, 0x3, 0xff, 0xe8, 0x78, 0x6c, 0x48, 0x84, 0x9, 0x5, 0x5, 0x79, 0x8f, 0x29, 0x67, 0xa2, 0xe1, 0x8d, 0x2f, 0xdc, 0xf2, 0x60, 0xe4, 0x62, 0x71, 0xf9, 0xae, 0x92, 0x83, 0x3a, 0x7f, 0xf3, 0xc6, 0x14, 0xb4, 0x17, 0xfc, 0x64, 0x4b, 0x89, 0x18, 0x5e, 0x22, 0x4b, 0x0, 0x82, 0xeb, 0x67, 0x5b, 0x51, 0x43, 0x4e, 0xc3, 0x42, 0x48, 0xc1, 0xfd, 0x88, 0x71, 0xcb, 0xee, 0xf3, 0x92, 0x20, 0x9c, 0x15, 0xc0, 0x4f, 0x11, 0xa4, 0x5, 0xd0, 0xdf, 0xb8, 0x25, 0x60, 0x58, 0xae, 0x2, 0x2d, 0x78, 0xf8, 0x1f, 0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0x70, 0xda, 0x11, 0xdb, 0x87, 0xe2, 0xc2, 0x26, 0x7e, 0x48, 0x3b, 0xda, 0xf4, 0x98, 0x3c, 0x51}}, - ShareProofs: []*types.NMTProof{ + ShareProofs: []*pb.Proof{ { Start: 0, End: 1,