Skip to content

Commit

Permalink
docs: fix broken code sample in some of the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
moldy530 committed Oct 17, 2024
1 parent 9dfaca1 commit f586e1d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions site/pages/smart-contracts/light-account/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,25 +36,25 @@ The code snippets below demonstrate how to use `LightAccount` and `MultiOwnerLig

```ts [light-account.ts]
import { createLightAccountAlchemyClient } from "@account-kit/smart-contracts";
import { sepolia } from "@account-kit/infra";
import { sepolia, alchemy } from "@account-kit/infra";
import { LocalAccountSigner } from "@aa-sdk/core";
import { generatePrivateKey } from "viem";

const lightAccountClient = await createLightAccountAlchemyClient({
apiKey: "your-api-key",
transport: alchemy({ apiKey: "your-api-key" })
chain: sepolia,
signer: LocalAccountSigner.privateKeyToAccountSigner(generatePrivateKey()),
});
```

```ts [multi-owner-light-account.ts]
import { createMultiOwnerLightAccountAlchemyClient } from "@account-kit/smart-contracts";
import { sepolia } from "@account-kit/infra";
import { sepolia, alchemy } from "@account-kit/infra";
import { LocalAccountSigner } from "@aa-sdk/core";
import { generatePrivateKey } from "viem";

const lightAccountClient = await createMultiOwnerLightAccountAlchemyClient({
apiKey: "your-api-key",
transport: alchemy({ apiKey: "your-api-key" })
chain: sepolia,
signer: LocalAccountSigner.privateKeyToAccountSigner(generatePrivateKey()),
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ Then you can do the following:

```ts twoslash
import { createModularAccountAlchemyClient } from "@account-kit/smart-contracts";
import { sepolia } from "@account-kit/infra";
import { sepolia, alchemy } from "@account-kit/infra";
import { LocalAccountSigner } from "@aa-sdk/core";
import { generatePrivateKey } from "viem/accounts";

const alchemyAccountClient = await createModularAccountAlchemyClient({
apiKey: "your-api-key",
transport: alchemy({ apiKey: "your-api-key" }),
chain: sepolia,
signer: LocalAccountSigner.privateKeyToAccountSigner(generatePrivateKey()),
});
Expand Down

0 comments on commit f586e1d

Please sign in to comment.