Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
rename rpc endpoints for easier decoration
  • Loading branch information
ntn-x2 committed Aug 4, 2022
commit 798e4fbd26b5dddcdedf0be9d4a3fac49688eac1
4 changes: 2 additions & 2 deletions rpc/public-credentials/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pub trait PublicCredentialsFilter<Credential> {
#[rpc(client, server)]
pub trait PublicCredentialsApi<BlockHash, OuterSubjectId, OuterCredentialId, OuterCredentialEntry, CredentialFilter> {
/// Return a credential that matches the provided credential ID, if found.
#[method(name = "get_credential")]
#[method(name = "credentials_get_credential")]
fn get_credential(
&self,
credential_id: OuterCredentialId,
Expand All @@ -50,7 +50,7 @@ pub trait PublicCredentialsApi<BlockHash, OuterSubjectId, OuterCredentialId, Out
/// Return all the credentials issued to the provided subject, optionally
/// filtering with the provided logic. The result is a vector of (credential
/// identifier, credential entry).
#[method(name = "get_credentials")]
#[method(name = "credentials_get_credentials")]
fn get_credentials(
&self,
subject: OuterSubjectId,
Expand Down