Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandratran committed Jan 25, 2023
1 parent a341877 commit 973bfe2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion snaps/how-to/develop-a-snap.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Develop a snap

A snap can extend the dapp-facing [MetaMask JSON-RPC API](../../api-sdk/reference/rpc-api.md) in
A snap can extend the dapp-facing [MetaMask JSON-RPC API](../../api-sdk/reference/rpc-api) in
arbitrary ways, or integrate with and extend the functionality of MetaMask using the
[Snaps JSON-RPC API](../reference/rpc-api.md) and [permissions](request-permissions.md).

Expand Down
4 changes: 2 additions & 2 deletions snaps/reference/exports.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ interface onCronjobArgs {

### Examples

#### Typescript
#### TypeScript

```typescript
import { OnCronjobHandler } from '@metamask/snap-types';
Expand All @@ -192,7 +192,7 @@ export const onCronjob: OnCronjobHandler = async ({ request }) => {
};
```

#### Javascript
#### JavaScript

```js
module.exports.onCronjob = async ({ request }) => {
Expand Down
4 changes: 2 additions & 2 deletions snaps/reference/rpc-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ granted permissions.

This is a convenience method for requesting the user's accounts and connecting to and installing snaps.
You can think of it as a combination of
[`eth_requestAccounts`](../../api-sdk/reference/rpc-api.md#eth_requestaccounts),
[`eth_requestAccounts`](../../api-sdk/reference/rpc-api#eth_requestaccounts),
[`wallet_installSnaps`](#wallet_installsnaps), and
[`wallet_requestPermissions`](../../api-sdk/reference/rpc-api.md#wallet_requestpermissions).
[`wallet_requestPermissions`](../../api-sdk/reference/rpc-api#wallet_requestpermissions).

#### Example

Expand Down

0 comments on commit 973bfe2

Please sign in to comment.