Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rootulp committed Aug 10, 2023
1 parent ec3d649 commit 4828a6e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/test/max_total_blob_size_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"github.com/celestiaorg/celestia-app/pkg/square"
"github.com/celestiaorg/celestia-app/test/util/testfactory"
"github.com/celestiaorg/celestia-app/test/util/testnode"
"github.com/celestiaorg/celestia-app/x/blob/types"
blobtypes "github.com/celestiaorg/celestia-app/x/blob/types"
sdk_tx "github.com/cosmos/cosmos-sdk/types/tx"
"github.com/stretchr/testify/assert"
Expand Down Expand Up @@ -90,7 +89,7 @@ func (s *MaxTotalBlobSizeSuite) TestSubmitPayForBlob_blobSizes() {
{
name: "2 mebibyte blob",
blob: mustNewBlob(t, 2*mebibyte),
want: types.ErrTotalBlobSizeTooLarge.ABCICode(),
want: blobtypes.ErrTotalBlobSizeTooLarge.ABCICode(),
},
}

Expand All @@ -99,7 +98,7 @@ func (s *MaxTotalBlobSizeSuite) TestSubmitPayForBlob_blobSizes() {
for _, tc := range testCases {
s.Run(tc.name, func() {
blobTx := newBlobTx(t, signer, s.cctx.GRPCClient, tc.blob)
res, err := types.BroadcastTx(context.TODO(), s.cctx.GRPCClient, sdk_tx.BroadcastMode_BROADCAST_MODE_BLOCK, blobTx)
res, err := blobtypes.BroadcastTx(context.TODO(), s.cctx.GRPCClient, sdk_tx.BroadcastMode_BROADCAST_MODE_BLOCK, blobTx)
require.NoError(t, err)
require.NotNil(t, res)
require.Equal(t, tc.want, res.TxResponse.Code, res.TxResponse.Logs)
Expand All @@ -121,7 +120,7 @@ func newBlobTx(t *testing.T, signer *blobtypes.KeyringSigner, conn *grpc.ClientC
addr, err := signer.GetSignerInfo().GetAddress()
require.NoError(t, err)

msg, err := types.NewMsgPayForBlobs(addr.String(), blob)
msg, err := blobtypes.NewMsgPayForBlobs(addr.String(), blob)
require.NoError(t, err)

err = signer.QueryAccountNumber(context.TODO(), conn)
Expand Down

0 comments on commit 4828a6e

Please sign in to comment.