diff --git a/app/export.go b/app/export.go index f38a30987..2ff818492 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 76f3571f3..5a7cb106e 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 }