From 0141472e1889930a840bd208db143f7a716576cf Mon Sep 17 00:00:00 2001 From: IshaVenikar Date: Mon, 2 Sep 2024 12:19:47 +0530 Subject: [PATCH] Fix lint errors --- app/export.go | 10 ++++++++-- gql/resolver.go | 7 ++++++- proto/cerc/registry/v1/tx.proto | 1 - 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/app/export.go b/app/export.go index f38a3098..2ff81849 100644 --- a/app/export.go +++ b/app/export.go @@ -226,12 +226,18 @@ func (app *LaconicApp) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddr /* Handle slashing state. */ // reset start height on signing infos - app.SlashingKeeper.IterateValidatorSigningInfos( + err = app.SlashingKeeper.IterateValidatorSigningInfos( ctx, func(addr sdk.ConsAddress, info slashingtypes.ValidatorSigningInfo) (stop bool) { info.StartHeight = 0 - app.SlashingKeeper.SetValidatorSigningInfo(ctx, addr, info) + err = app.SlashingKeeper.SetValidatorSigningInfo(ctx, addr, info) + if err != nil { + log.Fatal(err) + } return false }, ) + if err != nil { + log.Fatal(err) + } } diff --git a/gql/resolver.go b/gql/resolver.go index 76f3571f..5a7cb106 100644 --- a/gql/resolver.go +++ b/gql/resolver.go @@ -413,7 +413,12 @@ func (q queryResolver) GetParticipantByAddress(ctx context.Context, address stri func (q queryResolver) GetParticipantByNitroAddress(ctx context.Context, nitroAddress string) (*Participant, error) { onboardingQueryClient := onboardingTypes.NewQueryClient(q.ctx) - participantResp, err := onboardingQueryClient.GetParticipantByNitroAddress(ctx, &onboardingTypes.QueryGetParticipantByNitroAddressRequest{NitroAddress: nitroAddress}) + participantResp, err := onboardingQueryClient.GetParticipantByNitroAddress( + ctx, + &onboardingTypes.QueryGetParticipantByNitroAddressRequest{ + NitroAddress: nitroAddress, + }, + ) if err != nil { return nil, err } diff --git a/proto/cerc/registry/v1/tx.proto b/proto/cerc/registry/v1/tx.proto index 27ca619b..184af8d3 100644 --- a/proto/cerc/registry/v1/tx.proto +++ b/proto/cerc/registry/v1/tx.proto @@ -209,7 +209,6 @@ message MsgReassociateRecords { // MsgReassociateRecordsResponse message MsgReassociateRecordsResponse {} - // MsgUpdateParams is the Msg/UpdateParams request type. message MsgUpdateParams { option (cosmos.msg.v1.signer) = "authority";