File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
apps/portal/src/app/contracts/build/base-contracts/erc-4337/account-factory Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export const metadata = createMetadata({
15
15
# AccountFactory
16
16
17
17
``` solidity
18
- import "@thirdweb-dev/contracts/smart-wallet /non-upgradeable/AccountFactory.sol";
18
+ import "@thirdweb-dev/contracts/prebuilts/account /non-upgradeable/AccountFactory.sol";
19
19
```
20
20
21
21
This contract inherits from the [ ` BaseAccountFactory ` ] ( /contracts/build/extensions/erc-4337/SmartWalletFactory ) contract.
@@ -54,17 +54,23 @@ npx thirdweb create contract
54
54
``` bash
55
55
npx thirdweb deploy
56
56
```
57
+ > ** Note: secret key required for this command ` -k <YOUR_SECRET_KEY> ` **
57
58
58
59
Or import the contract into your existing project and inherit from it.
59
60
60
61
``` 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";
62
66
63
67
contract MyAccountFactory is AccountFactory {
64
68
constructor(
69
+ address _defaultAdmin,
65
70
IEntryPoint _entrypoint
66
71
)
67
72
AccountFactory(
73
+ _defaultAdmin,
68
74
_entrypoint
69
75
)
70
76
{}
You can’t perform that action at this time.
0 commit comments