Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
chore: fix typos (#266)
Browse files Browse the repository at this point in the history
Fix: typos
  • Loading branch information
omahs committed Feb 2, 2023
1 parent a20d0e1 commit 0f365a2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ async function main() {
const dappPage = await browser.newPage();
await dappPage.goto('http://example.org/');

// invoke a method from your snap that promps users with approve/reject dialog
// invoke a method from your snap that prompts users with approve/reject dialog
await metaMask.snaps.invokeSnap(dappPage, snapId, "my-method")

// instruct MetaMask to accept this request
Expand All @@ -88,7 +88,7 @@ async function main() {
const emitter = await metaMask.snaps.getNotificationEmitter();
const notificationPromise = emitter.waitForNotification();

// do something that prompts you snap to emit notifications
// do something that prompts your snap to emit notifications
await metaMask.snaps.invokeSnap(dappPage, snapId, "notify");

// Make sure the notification promise has resolved
Expand Down
8 changes: 4 additions & 4 deletions docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ type MetaMaskOptions = {
};
```

it runs it runs `dappeteer.launch` and `dappeteer.setupMetaMask` and returns an object with metaMask, metaMaskPage and browser.
it runs `dappeteer.launch` and `dappeteer.setupMetaMask` and returns an object with metaMask, metaMaskPage and browser.

<a name="initSnapEnv"></a>
## `dappeteer.initSnapEnv( opts: DappeteerLaunchOptions & MetaMaskOptions & InstallSnapOptions & { snapIdOrLocation: string }): Promise<{ metaMask: Dappeteer; browser: DappeteerBrowser; metaMaskPage: DappeteerPage; snapId: string;}`
Expand Down Expand Up @@ -153,11 +153,11 @@ it commands MetaMask to switch to a different account, by passing the index/posi
<a name="importPK"></a>
## `metaMask.importPK(privateKey: string): Promise<void>`
it commands MetaMask to import an private key. It can only be used while you haven't signed in yet, otherwise it throws.
it commands MetaMask to import a private key. It can only be used while you haven't signed in yet, otherwise it throws.
<a name="lock"></a>
## `metaMask.lock(): Promise<void>`
signs out from MetaMask. It can only be used if you arelady signed it, otherwise it throws.
signs out from MetaMask. It can only be used if you already signed it, otherwise it throws.
<a name="unlock"></a>
## `metaMask.unlock(password: string): Promise<void>`
Expand All @@ -170,7 +170,7 @@ it changes the current selected network. `networkName` can take the following va
<a name="acceptAddNetwork"></a>
## `metaMask.acceptAddNetwork(shouldSwitch?: boolean): Promise<void>`
commands MetaMask to accept a Network addition. For this to work MetaMask has to be in a Network addition state (basically prompting the user to accept/reject a Network addition). You can optionnaly tell MetaMask to switch to this network by passing the `true` parameter (default to `false`).
commands MetaMask to accept a Network addition. For this to work MetaMask has to be in a Network addition state (basically prompting the user to accept/reject a Network addition). You can optionally tell MetaMask to switch to this network by passing the `true` parameter (default to `false`).
<a name="rejectAddNetwork"></a>
## `metaMask.rejectAddNetwork(): Promise<void>`
Expand Down
2 changes: 1 addition & 1 deletion docs/BROWSER.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ async function store() {
// but at first we need to give a bit of time to metamask to store state
await dappPage.waitForTimeout(1000);

// now we can store on desiered location
// now we can store on desired location
browser.storeUserData("./location-path");

// done!
Expand Down

0 comments on commit 0f365a2

Please sign in to comment.