Skip to content

Commit a3f59e5

Browse files
Edit [DOCS]: Updated import. @thirdweb-dev/contracts and add _defaultAdmin (#5848)
Signed-off-by: Nidz The Fact <106298826+nidz-the-fact@users.noreply.github.com> Signed-off-by: Joaquim Verges <joaquim.verges@gmail.com> Co-authored-by: Joaquim Verges <joaquim.verges@gmail.com>
1 parent 273a320 commit a3f59e5

File tree

1 file changed

+8
-2
lines changed
  • apps/portal/src/app/contracts/build/base-contracts/erc-4337/account-factory

1 file changed

+8
-2
lines changed

apps/portal/src/app/contracts/build/base-contracts/erc-4337/account-factory/page.mdx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const metadata = createMetadata({
1515
# AccountFactory
1616

1717
```solidity
18-
import "@thirdweb-dev/contracts/smart-wallet/non-upgradeable/AccountFactory.sol";
18+
import "@thirdweb-dev/contracts/prebuilts/account/non-upgradeable/AccountFactory.sol";
1919
```
2020

2121
This contract inherits from the [`BaseAccountFactory`](/contracts/build/extensions/erc-4337/SmartWalletFactory) contract.
@@ -54,17 +54,23 @@ npx thirdweb create contract
5454
```bash
5555
npx thirdweb deploy
5656
```
57+
> **Note: secret key required for this command `-k <YOUR_SECRET_KEY>`**
5758
5859
Or import the contract into your existing project and inherit from it.
5960

6061
```solidity
61-
import "@thirdweb-dev/contracts/smart-wallet/non-upgradable/AccountFactory.sol";
62+
// SPDX-License-Identifier: GPL-3.0
63+
pragma solidity ^0.8.12;
64+
65+
import "@thirdweb-dev/contracts/prebuilts/account/non-upgradeable/AccountFactory.sol";
6266
6367
contract MyAccountFactory is AccountFactory {
6468
constructor(
69+
address _defaultAdmin,
6570
IEntryPoint _entrypoint
6671
)
6772
AccountFactory(
73+
_defaultAdmin,
6874
_entrypoint
6975
)
7076
{}

0 commit comments

Comments
 (0)