-
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.
- Loading branch information
1 parent
0dad41e
commit b96ba11
Showing
7 changed files
with
41 additions
and
59 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -128,3 +128,6 @@ dist | |
.yarn/build-state.yml | ||
.yarn/install-state.gz | ||
.pnp.* | ||
|
||
.deps/ | ||
cache/ |
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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,33 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
import "forge-std/Test.sol"; | ||
import {EntryPoint} from "../lib/light-account/lib/account-abstraction/contracts/core/EntryPoint.sol"; | ||
import {BLSLightAccount, IEntryPoint} from "../src/BLSLightAccount.sol"; | ||
import {LightAccountFactory} from "../lib/light-account/src/LightAccountFactory.sol"; | ||
import {LightAccount} from "../lib/light-account/src/LightAccount.sol"; | ||
|
||
contract BLSLightAccountTest is Test { | ||
address owner = address(this); | ||
IEntryPoint entryPoint; | ||
LightAccountFactory factory; | ||
bytes32 blsPublicKey = keccak256(bytes("blsPublicKey")); | ||
// BLSLightAccount account; | ||
LightAccount public account; | ||
address public eoaAddress; | ||
uint256 public constant EOA_PRIVATE_KEY = 1; | ||
|
||
function setUp() public { | ||
eoaAddress = vm.addr(EOA_PRIVATE_KEY); | ||
entryPoint = new EntryPoint(); | ||
factory = new LightAccountFactory(address(this), entryPoint); | ||
account = factory.createAccount(eoaAddress, 1); | ||
} | ||
|
||
function testInitialize() public { | ||
assertEq(entryPoint.getNonce(owner, 0), account.getNonce()); | ||
assertNotEq(account.owner(), owner); | ||
// account.initialize(owner, blsPublicKey); | ||
// account.setBlsPublicKey(blsPublicKey); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.