Skip to content

Commit

Permalink
Fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
plusminushalf committed Nov 4, 2024
1 parent e757dbf commit 0984c0a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions docs/pages/permissionless/how-to/signers/privy.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@ const { wallets } = useWallets();
const embeddedWallet = wallets.find(
(wallet) => wallet.walletClientType === "privy"
);
const { setActiveWallet } = usePrivyWagmi()

useEffect(() => setActiveWallet(embeddedWallet), [embeddedWallet])
```

### Create the SmartAccountClient
Expand Down Expand Up @@ -89,8 +86,14 @@ const pimlicoClient = createPimlicoClient({
}
})

const owner = embeddedWallet.getEthereumProvider()

if (!owner) {
throw new Error("No owner found")
}

const simpleSmartAccount = await toSimpleSmartAccount({
owner: walletClient,
owner: owner,
client: publicClient,
entryPoint: {
address: entryPoint07Address,
Expand Down

0 comments on commit 0984c0a

Please sign in to comment.