Skip to content

Commit

Permalink
forge fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mdehoog committed Dec 8, 2024
1 parent 1f755eb commit 2fe9670
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ResolvingProxyFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ library ResolvingProxyFactory {
return address(new ResolvingProxy{salt: salt}(proxy, admin));
}

function expensiveProxyAddress(address proxy, address admin, bytes32 salt) internal view returns (address predicted) {
function expensiveProxyAddress(address proxy, address admin, bytes32 salt)
internal
view
returns (address predicted)
{
bytes memory bytecode = abi.encodePacked(type(ResolvingProxy).creationCode, abi.encode(proxy, admin));
bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), salt, keccak256(bytecode)));
return address(uint160(uint256(hash)));
Expand Down

0 comments on commit 2fe9670

Please sign in to comment.