diff --git a/x/pki/keeper/grpc_query_revoked_certificates.go b/x/pki/keeper/grpc_query_revoked_certificates.go index f7ccf9e4d..0652726e9 100644 --- a/x/pki/keeper/grpc_query_revoked_certificates.go +++ b/x/pki/keeper/grpc_query_revoked_certificates.go @@ -57,17 +57,3 @@ func (k Keeper) RevokedCertificates(c context.Context, req *types.QueryGetRevoke return &types.QueryGetRevokedCertificatesResponse{RevokedCertificates: val}, nil } - -// IsRevokedCertificatePresent Check if the Revoked Certificate is present in the store. -func (k Keeper) IsRevokedCertificatePresent( - ctx sdk.Context, - subject string, - subjectKeyID string, -) bool { - store := prefix.NewStore(ctx.KVStore(k.storeKey), pkitypes.KeyPrefix(types.RevokedCertificatesKeyPrefix)) - - return store.Has(types.RevokedCertificatesKey( - subject, - subjectKeyID, - )) -} diff --git a/x/pki/keeper/revoked_certificates.go b/x/pki/keeper/revoked_certificates.go index d71bbe1ee..4c82926e1 100644 --- a/x/pki/keeper/revoked_certificates.go +++ b/x/pki/keeper/revoked_certificates.go @@ -110,3 +110,17 @@ func (k msgServer) removeOrUpdateRevokedX509Cert( ) } } + +// IsRevokedCertificatePresent Check if the Revoked Certificate is present in the store. +func (k Keeper) IsRevokedCertificatePresent( + ctx sdk.Context, + subject string, + subjectKeyID string, +) bool { + store := prefix.NewStore(ctx.KVStore(k.storeKey), pkitypes.KeyPrefix(types.RevokedCertificatesKeyPrefix)) + + return store.Has(types.RevokedCertificatesKey( + subject, + subjectKeyID, + )) +}