Skip to content

Commit

Permalink
chore: fix method name in docs (#656)
Browse files Browse the repository at this point in the history
  • Loading branch information
tadejpodrekar authored Sep 12, 2024
1 parent e1565ec commit 7f9eb73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/docs/docs/integrate-masca/masca-connector.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/docs/libraries/masca-connector.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 7f9eb73

Please sign in to comment.