From 7f9eb73ec7c01ab9b9c20bc9aa2cf45855e728a3 Mon Sep 17 00:00:00 2001 From: tadejpodrekar Date: Thu, 12 Sep 2024 11:56:07 +0200 Subject: [PATCH] chore: fix method name in docs (#656) --- packages/docs/docs/integrate-masca/masca-connector.md | 4 ++-- packages/docs/docs/libraries/masca-connector.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/docs/docs/integrate-masca/masca-connector.md b/packages/docs/docs/integrate-masca/masca-connector.md index 86a6e974a..9a90dbc08 100644 --- a/packages/docs/docs/integrate-masca/masca-connector.md +++ b/packages/docs/docs/integrate-masca/masca-connector.md @@ -196,10 +196,10 @@ const supportedStores = await api.getAvailableCredentialStores(); ## Switch DID Method -`switchMethod` is used to switch the currently selected DID method. +`switchDIDMethod` is used to switch the currently selected DID method. ```typescript -await api.switchMethod('did:key'); +await api.switchDIDMethod('did:key'); ``` ## Configure VC Stores diff --git a/packages/docs/docs/libraries/masca-connector.md b/packages/docs/docs/libraries/masca-connector.md index 595d875d9..5b7e1f975 100644 --- a/packages/docs/docs/libraries/masca-connector.md +++ b/packages/docs/docs/libraries/masca-connector.md @@ -31,7 +31,7 @@ export async function enableMasca( When installing Masca it is possible to set a custom `snapId` if you do not want to install it from the official repository. -Using a custom version and setting a list of supported methods is also possible. If the connected Masca does not currently have one of the supported methods selected, `switchMethod` RPC method will be automatically called. +Using a custom version and setting a list of supported methods is also possible. If the connected Masca does not currently have one of the supported methods selected, `switchDIDMethod` RPC method will be automatically called. After snap installation, this function returns a `Masca` object that can be used to retrieve the API. An example of initializing Masca and invoking the API is shown below.