Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix method name in docs #656

Merged
merged 1 commit into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
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
Loading