Skip to content

Commit

Permalink
fix: review
Browse files Browse the repository at this point in the history
  • Loading branch information
howydev committed Feb 28, 2025
1 parent c27b360 commit 00d1d7a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: Managing ownership on your Modular Account V2

You can add an owner to your account, or transfer ownership of your account with Modular Account V2. Adding an owner has the same flow as adding a session key with no root permissions.

To transfer ownership:
To transfer ownership, we call the `updateFallbackSignerData` function. Modular Account V2s achieve huge savings on creation because we cache the owner address in immutable bytecode on account creation. When transferring ownership, we set the fallback signer to the new owner address and this will be used during validation. We set the boolean to false for the account to check this value in storage instead of the immutable cached owner address.

```ts twoslash
import { createModularAccountV2Client } from "@account-kit/smart-contracts";
Expand All @@ -25,7 +25,7 @@ const client = await createModularAccountV2Client({

const newOwner = "0xd8da6bf26964af9d7eed9e03e53415d37aa96045";

// The boolean parameter in updateFallbackSignerData indicates that the 1st owner is no longer an owner of the account
// The boolean parameter in updateFallbackSignerData is `isFallbackSignerDisabled`, and false indicates that we are using the value of the fallback signer
await client.sendUserOperation({
uo: {
target: client.account.address,
Expand Down

0 comments on commit 00d1d7a

Please sign in to comment.