Skip to content

Commit

Permalink
Merge pull request #11 from abstraction-hq/10-update-deployment-script
Browse files Browse the repository at this point in the history
10 update deployment script
  • Loading branch information
imduchuyyy authored Jun 22, 2024
2 parents 75d14a2 + d566bb0 commit 18acee1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
10 changes: 9 additions & 1 deletion script/Deploy.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}
Expand All @@ -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();
}
Expand Down
3 changes: 1 addition & 2 deletions test/PasskeyModule.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ contract PasskeyModuleTest is Test {
function testPassKey() external {
passkeyModule = passkeyModuleFactory.create(
28203248099655634232680422976510411012986437076966613883671554831358983509938,
79473938854726638551736530376995476499049493858003728502280535141260854783821,
bytes32(0)
79473938854726638551736530376995476499049493858003728502280535141260854783821
);
bytes memory signature =
hex"00000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000170000000000000000000000000000000000000000000000000000000000000001eb6f6689e7b96f60dcae3542888f9d094a9abb8e04bd391104d6ee79a9f0967d3bc293dc51c51b23f9063ae81bb2e4a99b520f5f04cda804f0dd80b4c8d7f353000000000000000000000000000000000000000000000000000000000000002549960de5880e8c687434170f6476605b8fe4aeb9a28632c7995cf3ba831d97631d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000867b2274797065223a22776562617574686e2e676574222c226368616c6c656e6765223a22644c4836595a6f78345332616a6f4e4a384c374d47734657436c75584c6258514a62306e466c7377685930222c226f726967696e223a22687474703a2f2f6c6f63616c686f73743a33303030222c2263726f73734f726967696e223a66616c73657d0000000000000000000000000000000000000000000000000000";
Expand Down

0 comments on commit 18acee1

Please sign in to comment.