From 83276d04570cb4a08aa8724c464a265283024ff5 Mon Sep 17 00:00:00 2001 From: Andrey Luiz Date: Tue, 16 Jul 2024 16:22:28 +0200 Subject: [PATCH] Fix missing curly braces on code samples (#1411) --- .../how-to/use-sdk/javascript/make-read-only-requests.md | 2 +- wallet/how-to/use-sdk/javascript/other-web-frameworks.md | 8 ++++---- wallet/how-to/use-sdk/javascript/pure-js.md | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/wallet/how-to/use-sdk/javascript/make-read-only-requests.md b/wallet/how-to/use-sdk/javascript/make-read-only-requests.md index bb6208a4480..85691279fc8 100644 --- a/wallet/how-to/use-sdk/javascript/make-read-only-requests.md +++ b/wallet/how-to/use-sdk/javascript/make-read-only-requests.md @@ -119,7 +119,7 @@ sdkOptions={{ }, defaultReadOnlyChainId: "0x1", // Other options. -} +}} ``` In this example, read-only requests to Mainnet (chain ID `0x1`) use the Infura API, while read-only diff --git a/wallet/how-to/use-sdk/javascript/other-web-frameworks.md b/wallet/how-to/use-sdk/javascript/other-web-frameworks.md index 13b72f32031..2f5c54dcea4 100644 --- a/wallet/how-to/use-sdk/javascript/other-web-frameworks.md +++ b/wallet/how-to/use-sdk/javascript/other-web-frameworks.md @@ -42,14 +42,14 @@ import { MetaMaskSDK } from "@metamask/sdk" Instantiate the SDK using any [options](../../../reference/sdk-js-options.md): ```javascript title="index.js" -const MMSDK = new MetaMaskSDK( +const MMSDK = new MetaMaskSDK({ dappMetadata: { name: "Example JavaScript Dapp", url: window.location.href, }, infuraAPIKey: process.env.INFURA_API_KEY, // Other options -); +}); // You can also access via window.ethereum const ethereum = MMSDK.getProvider(); @@ -83,14 +83,14 @@ 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, }, infuraAPIKey: process.env.INFURA_API_KEY, // Other options -); +}); // You can also access via window.ethereum const ethereum = MMSDK.getProvider(); diff --git a/wallet/how-to/use-sdk/javascript/pure-js.md b/wallet/how-to/use-sdk/javascript/pure-js.md index c0978854676..caf89a1f18c 100644 --- a/wallet/how-to/use-sdk/javascript/pure-js.md +++ b/wallet/how-to/use-sdk/javascript/pure-js.md @@ -19,21 +19,21 @@ To import, instantiate, and use the SDK, you can insert a script in the head sec ... ...