Skip to content

Commit

Permalink
gofmt & lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Codegnosis committed Oct 30, 2019
1 parent b86ff97 commit 129c4a1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
4 changes: 2 additions & 2 deletions cmd/und/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ func newApp(logger log.Logger, db dbm.DB, traceStore io.Writer) abci.Application
cache = store.NewCommitKVStoreCacheManager()
}

return app.NewMainchainApp(logger, db, traceStore,true,
return app.NewMainchainApp(logger, db, traceStore, true,
baseapp.SetPruning(store.NewPruningOptionsFromString(viper.GetString("pruning"))),
baseapp.SetMinGasPrices(viper.GetString(server.FlagMinGasPrices)),
baseapp.SetHaltHeight(viper.GetUint64(server.FlagHaltHeight)),
baseapp.SetHaltTime(viper.GetUint64(server.FlagHaltTime)),
baseapp.SetInterBlockCache(cache),
)
)
}

func exportAppStateAndTMValidators(
Expand Down
10 changes: 5 additions & 5 deletions x/wrkchain/ante.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ type FeeTx interface {
// 3. Checks if the fee payer has sufficient funds in their account to pay for it
//
// If any of the checks fail, a suitable error is returned.
type CorrectWrkChainFeeDecorator struct{
ak auth.AccountKeeper
wck Keeper
type CorrectWrkChainFeeDecorator struct {
ak auth.AccountKeeper
wck Keeper
}

func NewWrkChainFeeDecorator(ak auth.AccountKeeper, wrkchainKeeper Keeper) CorrectWrkChainFeeDecorator {
return CorrectWrkChainFeeDecorator{
ak: ak,
ak: ak,
wck: wrkchainKeeper,
}
}
Expand Down Expand Up @@ -67,7 +67,7 @@ func (wfd CorrectWrkChainFeeDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, si
}

// check fee payer is WRKChain Owner
err = checkWrkChainOwnerFeePayer(feeTx)
err = checkWrkChainOwnerFeePayer(feeTx)
if err != nil {
return ctx, err
}
Expand Down
2 changes: 0 additions & 2 deletions x/wrkchain/client/rest/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ type registerWrkChainReq struct {
WrkChainName string `json:"name"`
GenesisHash string `json:"genesis"`
Owner string `json:"owner"`
Fee string `json:"fee"`
}

type recordWrkChainBlockReq struct {
Expand All @@ -30,7 +29,6 @@ type recordWrkChainBlockReq struct {
Hash2 string `json:"hash2"`
Hash3 string `json:"hash3"`
Owner string `json:"owner"`
Fee string `json:"fee"`
}

func registerWrkChainHandler(cliCtx context.CLIContext) http.HandlerFunc {
Expand Down
8 changes: 4 additions & 4 deletions x/wrkchain/internal/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ import (

// Keeper maintains the link to data storage and exposes getter/setter methods for the various parts of the state machine
type Keeper struct {
storeKey sdk.StoreKey // Unexposed key to access store from sdk.Context
cdc *codec.Codec // The wire codec for binary encoding/decoding.
storeKey sdk.StoreKey // Unexposed key to access store from sdk.Context
cdc *codec.Codec // The wire codec for binary encoding/decoding.
}

// NewKeeper creates new instances of the nameservice Keeper
func NewKeeper(storeKey sdk.StoreKey, cdc *codec.Codec) Keeper {
return Keeper{
storeKey: storeKey,
cdc: cdc,
storeKey: storeKey,
cdc: cdc,
}
}

Expand Down

0 comments on commit 129c4a1

Please sign in to comment.