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({
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
2121This contract inherits from the [ ` BaseAccountFactory ` ] ( /contracts/build/extensions/erc-4337/SmartWalletFactory ) contract.
@@ -54,17 +54,23 @@ npx thirdweb create contract
5454``` bash
5555npx thirdweb deploy
5656```
57+ > ** Note: secret key required for this command ` -k <YOUR_SECRET_KEY> ` **
5758
5859Or 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
6367contract MyAccountFactory is AccountFactory {
6468 constructor(
69+ address _defaultAdmin,
6570 IEntryPoint _entrypoint
6671 )
6772 AccountFactory(
73+ _defaultAdmin,
6874 _entrypoint
6975 )
7076 {}
You can’t perform that action at this time.
0 commit comments