diff --git a/script/Deploy.s.sol b/script/Deploy.s.sol index 278587f..a494f5a 100644 --- a/script/Deploy.s.sol +++ b/script/Deploy.s.sol @@ -3,8 +3,10 @@ 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 {} @@ -14,7 +16,13 @@ contract Deployer is Script { vm.startBroadcast(deployerPrivateKey); EntryPoint entryPoint = new EntryPoint(); - new WalletFactory(address(entryPoint)); + console.log("EntryPoint: ", address(entryPoint)); + + WalletFactory walletFactory = new WalletFactory(address(entryPoint)); + console.log("WalletFactory: ", address(walletFactory)); + + PasskeyModuleFactory passkeyModuleFactory = new PasskeyModuleFactory(); + console.log("PasskeyModuleFactory: ", address(passkeyModuleFactory)); vm.stopBroadcast(); } diff --git a/test/PasskeyModule.t.sol b/test/PasskeyModule.t.sol index 09fdad6..96f76d4 100644 --- a/test/PasskeyModule.t.sol +++ b/test/PasskeyModule.t.sol @@ -17,8 +17,7 @@ contract PasskeyModuleTest is Test { function testPassKey() external { passkeyModule = passkeyModuleFactory.create( 28203248099655634232680422976510411012986437076966613883671554831358983509938, - 79473938854726638551736530376995476499049493858003728502280535141260854783821, - bytes32(0) + 79473938854726638551736530376995476499049493858003728502280535141260854783821 ); bytes memory signature = hex"00000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000170000000000000000000000000000000000000000000000000000000000000001eb6f6689e7b96f60dcae3542888f9d094a9abb8e04bd391104d6ee79a9f0967d3bc293dc51c51b23f9063ae81bb2e4a99b520f5f04cda804f0dd80b4c8d7f353000000000000000000000000000000000000000000000000000000000000002549960de5880e8c687434170f6476605b8fe4aeb9a28632c7995cf3ba831d97631d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000867b2274797065223a22776562617574686e2e676574222c226368616c6c656e6765223a22644c4836595a6f78345332616a6f4e4a384c374d47734657436c75584c6258514a62306e466c7377685930222c226f726967696e223a22687474703a2f2f6c6f63616c686f73743a33303030222c2263726f73734f726967696e223a66616c73657d0000000000000000000000000000000000000000000000000000";