Skip to content

Commit

Permalink
fix syntax error in nodejs metamask sdk snippet (#1074)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhavya3024 authored Dec 27, 2023
1 parent a1ed0a1 commit de0abad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions wallet/how-to/connect/set-up-sdk/javascript/nodejs.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,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: "Example Node.js Dapp",
url: window.location.host,
}
// Other options
);
});

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

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

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

Expand Down

0 comments on commit de0abad

Please sign in to comment.