Skip to content

Commit

Permalink
fix test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
cmwaters committed Mar 26, 2024
1 parent fd7372c commit 8bc1b36
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
10 changes: 9 additions & 1 deletion pkg/user/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,5 +103,13 @@ func TestSignerTwins(t *testing.T) {

func newSingleSignerFromContext(ctx testnode.Context) (*user.Signer, error) {
encCfg := encoding.MakeConfig(app.ModuleEncodingRegisters...)
return user.SetupSingleSigner(ctx.GoContext(), ctx.Keyring, ctx.GRPCClient, encCfg)
record, err := ctx.Keyring.Key("validator")
if err != nil {
return nil, err
}
address, err := record.GetAddress()
if err != nil {
return nil, err
}
return user.SetupSigner(ctx.GoContext(), ctx.Keyring, ctx.GRPCClient, address, encCfg)
}
3 changes: 1 addition & 2 deletions pkg/user/signer.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
"github.com/celestiaorg/celestia-app/app/encoding"
apperrors "github.com/celestiaorg/celestia-app/app/errors"
blob "github.com/celestiaorg/celestia-app/x/blob/types"
blobtypes "github.com/celestiaorg/celestia-app/x/blob/types"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/grpc/tmservice"
"github.com/cosmos/cosmos-sdk/crypto/keyring"
Expand Down Expand Up @@ -202,7 +201,7 @@ func (s *Signer) CreatePayForBlob(blobs []*tmproto.Blob, opts ...TxOption) ([]by
}

func (s *Signer) createPayForBlobs(blobs []*tmproto.Blob, opts ...TxOption) ([]byte, uint64, error) {
msg, err := blobtypes.NewMsgPayForBlobs(s.address.String(), blobs...)
msg, err := blob.NewMsgPayForBlobs(s.address.String(), blobs...)
if err != nil {
return nil, 0, err
}
Expand Down

0 comments on commit 8bc1b36

Please sign in to comment.