Skip to content

Commit 94fa0eb

Browse files
Apply suggestions from code review
Co-authored-by: Alexandra Carrillo <[email protected]>
1 parent 558a14b commit 94fa0eb

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

delegation-toolkit/guides/smart-accounts/deploy-smart-account.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@ import TabItem from "@theme/TabItem";
77

88
# Deploy a smart account
99

10-
You can deploy MetaMask Smart Accounts in two different ways. You can either deploy the smart account automatically when sending
11-
the first user operation, or use a manual approach.
10+
You can deploy MetaMask Smart Accounts in two different ways. You can either deploy a smart account automatically when sending
11+
the first user operation, or manually deploy the account.
1212

1313
## Prerequisites
1414

1515
- [Install and set up the Delegation Toolkit.](../../get-started/install.md)
1616
- [Configure the Delegation Toolkit.](../configure.md)
17-
- [Create a MetaMask smart account](create-smart-account.md)
17+
- [Create a MetaMask smart account.](create-smart-account.md)
1818

19-
## Sending first user operation
19+
## Deploy with the first user operation
2020

21-
Whenever you send the first user operation, it checks whether the smart account is already deployed. If the account
22-
is not deployed, the `initCode` is added to the user operation to ensure the smart account is deployed within the
23-
same operation. Internally, the `initCode` is encoded using the factory and factory data.
21+
When you send the first user operation from a smart account, the Delegation Toolkit checks whether the account is already deployed. If the account
22+
is not deployed, the toolkit adds the `initCode` to the user operation to deploy the account within the
23+
same operation. Internally, the `initCode` is encoded using the `factory` and `factoryData`.
2424

2525
<Tabs>
2626
<TabItem value="example.ts">
@@ -86,10 +86,10 @@ export const bundlerClient = createBundlerClient({
8686
</TabItem>
8787
</Tabs>
8888

89-
## Manual approach
89+
## Deploy manually
9090

91-
To use the manual approach, you can call the MetaMask Smart Account [`getFactoryArgs`](../../reference/api/smart-account#getfactoryargs)
92-
method to retrieve the `factory` and `factoryData`. This allows you to use a relay account to sponsor the deployment without needing a paymaster.
91+
To deploy a smart account manually, call the [`getFactoryArgs`](../../reference/api/smart-account.md#getfactoryargs)
92+
method from the smart account to retrieve the `factory` and `factoryData`. This allows you to use a relay account to sponsor the deployment without needing a paymaster.
9393

9494
The `factory` represents the contract address responsible for deploying the smart account, while `factoryData` contains the
9595
calldata that will be executed by the `factory` to deploy the smart account.

0 commit comments

Comments
 (0)