Skip to content

Commit

Permalink
Fix typos (#1134)
Browse files Browse the repository at this point in the history
  • Loading branch information
junhoyeo authored Feb 14, 2024
1 parent 7705878 commit d3c820b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions wallet/how-to/use-sdk/javascript/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ import { MetaMaskSDK } from "@metamask/sdk";
Instantiate the SDK using any [options](../../../reference/sdk-js-options.md):

```javascript
const MMSDK = new MetaMaskSDK(
const MMSDK = new MetaMaskSDK({
dappMetadata: {
name: "JavaScript example dapp",
url: window.location.href,
}
},
// Other options
);
});

// You can also access via window.ethereum
const ethereum = MMSDK.getProvider();
Expand Down Expand Up @@ -96,13 +96,13 @@ You can copy the full JavaScript example to get started:
```javascript title="index.js"
import { MetaMaskSDK } from "@metamask/sdk";

const MMSDK = new MetaMaskSDK(
const MMSDK = new MetaMaskSDK({
dappMetadata: {
name: "Example JavaScript Dapp",
url: window.location.href,
}
},
// Other options
);
});

// You can also access via window.ethereum
const ethereum = MMSDK.getProvider();
Expand Down

0 comments on commit d3c820b

Please sign in to comment.