Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vgonkivs committed Apr 8, 2024
1 parent 80d1aae commit 29d4916
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
8 changes: 4 additions & 4 deletions nodebuilder/state/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ type Module interface {
GrantFee(
ctx context.Context,
grantee state.AccAddress,
amont state.Int,
amount,
fee state.Int,
gasLim uint64,
) (*state.TxResponse, error)
Expand Down Expand Up @@ -178,7 +178,7 @@ type API struct {
GrantFee func(
ctx context.Context,
grantee state.AccAddress,
amount state.Int,
amount,
fee state.Int,
gasLim uint64,
) (*state.TxResponse, error) `perm:"write"`
Expand Down Expand Up @@ -289,11 +289,11 @@ func (api *API) Balance(ctx context.Context) (*state.Balance, error) {
func (api *API) GrantFee(
ctx context.Context,
grantee state.AccAddress,
amount state.Int,
amount,
fee state.Int,
gasLim uint64,
) (*state.TxResponse, error) {
return api.Internal.GrantFee(ctx, grantee,amount, fee, gasLim)
return api.Internal.GrantFee(ctx, grantee, amount, fee, gasLim)
}

func (api *API) RevokeGrantFee(
Expand Down
7 changes: 3 additions & 4 deletions state/core_access.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"time"

sdkErrors "cosmossdk.io/errors"
"github.com/celestiaorg/celestia-app/pkg/appconsts"
"github.com/cosmos/cosmos-sdk/api/tendermint/abci"
nodeservice "github.com/cosmos/cosmos-sdk/client/grpc/node"
storetypes "github.com/cosmos/cosmos-sdk/store/types"
Expand All @@ -28,9 +27,9 @@ import (

"github.com/celestiaorg/celestia-app/app"
apperrors "github.com/celestiaorg/celestia-app/app/errors"
"github.com/celestiaorg/celestia-app/pkg/appconsts"
appblob "github.com/celestiaorg/celestia-app/x/blob"
apptypes "github.com/celestiaorg/celestia-app/x/blob/types"
blobtypes "github.com/celestiaorg/celestia-app/x/blob/types"
libhead "github.com/celestiaorg/go-header"

"github.com/celestiaorg/celestia-node/blob"
Expand Down Expand Up @@ -244,7 +243,7 @@ func (ca *CoreAccessor) SubmitPayForBlob(

var lastErr error
for attempt := 0; attempt < maxRetries; attempt++ {
options := []blobtypes.TxBuilderOption{apptypes.SetGasLimit(gasLim), withFee(fee)}
options := []apptypes.TxBuilderOption{apptypes.SetGasLimit(gasLim), withFee(fee)}
if feeGrant != nil {
options = append(options, feeGrant)
}
Expand Down Expand Up @@ -648,7 +647,7 @@ func withFee(fee Int) apptypes.TxBuilderOption {
return apptypes.SetFeeAmount(gasFee)
}

func (ca *CoreAccessor) getGranter(ctx context.Context) (blobtypes.TxBuilderOption, error) {
func (ca *CoreAccessor) getGranter(ctx context.Context) (apptypes.TxBuilderOption, error) {
addr, err := ca.signer.GetSignerInfo().GetAddress()
if err != nil {
return nil, err
Expand Down

0 comments on commit 29d4916

Please sign in to comment.