Skip to content

Commit

Permalink
docs: fix LA transfer ownership reference
Browse files Browse the repository at this point in the history
  • Loading branch information
moldy530 committed Feb 1, 2024
1 parent 2c1073c commit b34a470
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions site/using-smart-accounts/transfer-ownership/light-account.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,20 @@ There a number of ways you can call this method using Account Kit.
::: code-group

```ts [example.ts]
import { transferLightAccountOwnership } from "@alchemy/aa-accounts";
import { smartAccountClient } from "./smartAccountClient";

// this will return the address of the smart account you want to transfer ownerhip of
const accountAddress = await provider.getAddress();
const newOwner = "0x..."; // the address of the new owner

// [!code focus:99]
const hash = transferLightAccountOwnership(smartAccountClient, {
const hash = smartAccountClient.transferOwnership({
newOwner,
waitForTxn: true,
});
```

<<< @/snippets/aa-core/smartAccountClient.ts
<<< @/snippets/aa-alchemy/light-account-client.ts [smartAccountClient.ts]

:::

Expand Down

0 comments on commit b34a470

Please sign in to comment.