Skip to content

Commit

Permalink
chore: remove unnnecessary casting
Browse files Browse the repository at this point in the history
  • Loading branch information
highskore committed Nov 15, 2024
1 parent b04bfb1 commit 6d288e5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/accounts/erc7579/ERC7579Factory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ contract ERC7579Factory is IAccountFactory, ERC7579Precompiles {

function init() public override {
implementation = deployERC7579Account();
bootstrapDefault = IERC7579Bootstrap(deployERC7579Bootstrap());
bootstrapDefault = deployERC7579Bootstrap();
}

function createAccount(bytes32 salt, bytes memory initCode) public override returns (address) {
Expand Down
2 changes: 1 addition & 1 deletion src/accounts/kernel/KernelFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ contract KernelFactory is IAccountFactory, KernelPrecompiles {
MockHookMultiPlexer public hookMultiPlexer;

function init() public override {
kernelImpl = IKernel(deployKernel(ENTRYPOINT_ADDR));
kernelImpl = deployKernel(ENTRYPOINT_ADDR);
factory = deployKernelFactory(address(kernelImpl));
hookMultiPlexer = new MockHookMultiPlexer();
}
Expand Down
4 changes: 2 additions & 2 deletions src/accounts/safe/SafeFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ contract SafeFactory is IAccountFactory, Safe7579Precompiles {
SafeProxyFactory internal safeProxyFactory;

function init() public override {
safe7579 = ISafe7579(deploySafe7579());
launchpad = ISafe7579Launchpad(deploySafe7579Launchpad(ENTRYPOINT_ADDR, REGISTRY_ADDR));
safe7579 = deploySafe7579();
launchpad = deploySafe7579Launchpad(ENTRYPOINT_ADDR, REGISTRY_ADDR);
safeSingleton = new Safe();
safeProxyFactory = new SafeProxyFactory();
}
Expand Down

0 comments on commit 6d288e5

Please sign in to comment.