This repository has been archived by the owner on Dec 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from abstraction-hq/18-create-passkey-in-walle…
…t-factory create passkey module in wallet factory
- Loading branch information
Showing
6 changed files
with
66 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// SPDX-License-Identifier: Apache | ||
pragma solidity ^0.8.0; | ||
|
||
import {Script, console2} from "forge-std/Script.sol"; | ||
|
||
import "forge-std/console.sol"; | ||
import "account-abstraction/core/EntryPoint.sol"; | ||
import "../src/WalletFactory.sol"; | ||
import "../src/modules/Passkey.sol"; | ||
|
||
contract Deployer is Script { | ||
function setUp() external {} | ||
|
||
function run() external { | ||
uint256 deployerPrivateKey = vm.envUint("DEPLOYER_PRIVATE_KEY"); | ||
address exitedEntryPoint = vm.envAddress("ENTRY_POINT"); | ||
require(exitedEntryPoint != address(0), "ENTRY_POINT is required"); | ||
vm.startBroadcast(deployerPrivateKey); | ||
|
||
console.log("EntryPoint: ", exitedEntryPoint); | ||
|
||
WalletFactory walletFactory = new WalletFactory(exitedEntryPoint); | ||
console.log("WalletFactory: ", address(walletFactory)); | ||
|
||
vm.stopBroadcast(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters