pleaseing the linter (2)

Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
Jürgen Eckel 2025-05-02 13:30:37 +02:00
parent 36d81fe9ff
commit ae3dcd1df6
No known key found for this signature in database
3 changed files with 8 additions and 12 deletions

View File

@ -621,7 +621,7 @@ func New(
genutil.NewAppModule(
app.AccountKeeper,
app.StakingKeeper,
app.BaseApp.DeliverTx,
app.DeliverTx,
encodingConfig.TxConfig,
),
auth.NewAppModule(appCodec, app.AccountKeeper, authsims.RandomGenesisAccounts, app.GetSubspace(authtypes.ModuleName)),
@ -939,14 +939,14 @@ func (app *App) RegisterAPIRoutes(apiSvr *api.Server, _ config.APIConfig) {
// RegisterTxService implements the Application.RegisterTxService method.
func (app *App) RegisterTxService(clientCtx client.Context) {
authtx.RegisterTxService(app.BaseApp.GRPCQueryRouter(), clientCtx, app.BaseApp.Simulate, app.interfaceRegistry)
authtx.RegisterTxService(app.GRPCQueryRouter(), clientCtx, app.Simulate, app.interfaceRegistry)
}
// RegisterTendermintService implements the Application.RegisterTendermintService method.
func (app *App) RegisterTendermintService(clientCtx client.Context) {
tmservice.RegisterTendermintService(
clientCtx,
app.BaseApp.GRPCQueryRouter(),
app.GRPCQueryRouter(),
app.interfaceRegistry,
app.Query,
)

View File

@ -41,7 +41,7 @@ func (app *App) ExportAppStateAndValidators(
AppState: appState,
Validators: validators,
Height: height,
ConsensusParams: app.BaseApp.GetConsensusParams(ctx),
ConsensusParams: app.GetConsensusParams(ctx),
}, err
}
@ -50,13 +50,8 @@ func (app *App) ExportAppStateAndValidators(
// NOTE zero height genesis is a temporary feature which will be deprecated
// in favour of export at a block height
func (app *App) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []string) {
applyAllowedAddrs := false
// check if there is a allowed address list
if len(jailAllowedAddrs) > 0 {
applyAllowedAddrs = true
}
applyAllowedAddrs := (len(jailAllowedAddrs) > 0)
allowedAddrsMap := make(map[string]bool)
for _, addr := range jailAllowedAddrs {

View File

@ -149,7 +149,8 @@ func (mms *MqttMonitor) SelectPoPParticipantsOutOfActiveActors() (challenger str
found := 0
var lastSeen LastSeenEvent
for iter.Next() {
if count == randomChallenger {
switch count {
case randomChallenger:
lastSeen, err = mms.getDataFromIter(iter)
if err != nil {
Log("could not get Data from ID" + strconv.Itoa(randomChallenger))
@ -157,7 +158,7 @@ func (mms *MqttMonitor) SelectPoPParticipantsOutOfActiveActors() (challenger str
}
challenger = lastSeen.Address
found++
} else if count == randomChallengee {
case randomChallengee:
lastSeen, err = mms.getDataFromIter(iter)
if err != nil {
Log("could not get Data from ID" + strconv.Itoa(randomChallengee))