Skip to content

Commit 38635c3

Browse files
committed
fix: celestia da commitment type cast error
1 parent c69eb87 commit 38635c3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

celestia/client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ func (c *Client) Submit(ctx context.Context, daBlob da.Blob, gasPrice float64) (
119119
if err != nil {
120120
return nil, err
121121
}
122-
shareCommitment, ok := commitment.(blob.Commitment)
122+
shareCommitment, ok := commitment.(Commitment)
123123
if !ok {
124124
return nil, errors.New("invalid commitment")
125125
}

celestia/types.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ type ID struct {
66
Height uint64
77
SharePointer
88
TxHash string
9-
ShareCommitment blob.Commitment
9+
ShareCommitment Commitment
1010
}
1111

1212
type Proof = blob.Proof
1313

14-
type Commitment = blob.Commitment
14+
type Commitment = []byte
1515

1616
type SharePointer struct {
1717
Height int64

0 commit comments

Comments
 (0)