Skip to content

fixed typo about lit initialization #172

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ yarn add @lit-protocol/lit-node-client
```js
import * as LitJsSdk from "@lit-protocol/lit-node-client";

const client = new LitJsSdk.LitNodeClient();
const client = new LitJsSdk.LitNodeClient({});

class Lit {
litNodeClient;
Expand Down
6 changes: 4 additions & 2 deletions versioned_docs/version-2.0/sdk/explanation/encryption.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ This example will show you how to encrypt and decrypt static data using the Lit

At the top of your file, instantiate your Lit Node client like so:


```js
const client = new LitJsSdk.LitNodeClient();
const chain = "ethereum";
import * as LitJsSdk from "@lit-protocol/lit-node-client";

const client = new LitJsSdk.LitNodeClient({});
```

Create a Lit class and set the litNodeClient.
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-2.0/sdk/explanation/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ values={[
<TabItem value="yarn">

```js
const client = new LitJsSdk.LitNodeClient();
const client = new LitJsSdk.LitNodeClient({});
await client.connect();
window.litNodeClient = client;
```
Expand Down