Skip to content

Commit

Permalink
fix: proto, contracts, tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hopeyen committed Nov 1, 2024
1 parent 1373465 commit 4a7f28d
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 86 deletions.
69 changes: 31 additions & 38 deletions api/grpc/disperser/disperser.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

45 changes: 0 additions & 45 deletions api/grpc/disperser/disperser_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions core/auth/payment_signer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func TestPaymentSigner(t *testing.T) {

t.Run("SignBlobPayment", func(t *testing.T) {
header := &core.PaymentMetadata{
AccountID: "",
AccountID: hex.EncodeToString(crypto.FromECDSAPub(&privateKey.PublicKey)),
BinIndex: 1,
CumulativePayment: big.NewInt(1),
}
Expand All @@ -40,7 +40,7 @@ func TestPaymentSigner(t *testing.T) {
header := &core.PaymentMetadata{
BinIndex: 1,
CumulativePayment: big.NewInt(1),
AccountID: "",
AccountID: hex.EncodeToString(crypto.FromECDSAPub(&privateKey.PublicKey)),
}

// Create an invalid signature
Expand All @@ -53,7 +53,7 @@ func TestPaymentSigner(t *testing.T) {
header := &core.PaymentMetadata{
BinIndex: 1,
CumulativePayment: big.NewInt(1),
AccountID: "",
AccountID: hex.EncodeToString(crypto.FromECDSAPub(&privateKey.PublicKey)),
}

signature, err := signer.SignBlobPayment(header)
Expand Down

0 comments on commit 4a7f28d

Please sign in to comment.