Skip to content

Commit

Permalink
fix: review
Browse files Browse the repository at this point in the history
  • Loading branch information
howydev committed Mar 3, 2025
1 parent 00d1d7a commit 6a559df
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ description: Managing ownership on your Modular Account V2

# Managing Ownership

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.
You can add an owner to your account, or transfer ownership of your account with Modular Account V2.

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.

Note that `updateFallbackSignerData` is an ownership transfer operation, and the previous owner would lose access to the account. To add an owner, you should [add a session key with root permissions instead](/smart-contracts/modular-account-v2/session-keys/adding-session-keys).

```ts twoslash
import { createModularAccountV2Client } from "@account-kit/smart-contracts";
import { semiModularAccountBytecodeAbi } from "@account-kit/smart-contracts/experimental";
Expand Down

0 comments on commit 6a559df

Please sign in to comment.