Skip to content

Commit f06d87f

Browse files
committed
Corrected helper location
1 parent 40d26b7 commit f06d87f

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

x/pki/keeper/grpc_query_revoked_certificates.go

-14
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,3 @@ func (k Keeper) RevokedCertificates(c context.Context, req *types.QueryGetRevoke
5757

5858
return &types.QueryGetRevokedCertificatesResponse{RevokedCertificates: val}, nil
5959
}
60-
61-
// IsRevokedCertificatePresent Check if the Revoked Certificate is present in the store.
62-
func (k Keeper) IsRevokedCertificatePresent(
63-
ctx sdk.Context,
64-
subject string,
65-
subjectKeyID string,
66-
) bool {
67-
store := prefix.NewStore(ctx.KVStore(k.storeKey), pkitypes.KeyPrefix(types.RevokedCertificatesKeyPrefix))
68-
69-
return store.Has(types.RevokedCertificatesKey(
70-
subject,
71-
subjectKeyID,
72-
))
73-
}

x/pki/keeper/revoked_certificates.go

+14
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,17 @@ func (k msgServer) removeOrUpdateRevokedX509Cert(
110110
)
111111
}
112112
}
113+
114+
// IsRevokedCertificatePresent Check if the Revoked Certificate is present in the store.
115+
func (k Keeper) IsRevokedCertificatePresent(
116+
ctx sdk.Context,
117+
subject string,
118+
subjectKeyID string,
119+
) bool {
120+
store := prefix.NewStore(ctx.KVStore(k.storeKey), pkitypes.KeyPrefix(types.RevokedCertificatesKeyPrefix))
121+
122+
return store.Has(types.RevokedCertificatesKey(
123+
subject,
124+
subjectKeyID,
125+
))
126+
}

0 commit comments

Comments
 (0)