Skip to content

Commit

Permalink
style: update formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulRBerg committed Sep 2, 2024
1 parent 84502ca commit e8d5198
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 45 deletions.
4 changes: 1 addition & 3 deletions src/PRBProxyRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,7 @@ contract PRBProxyRegistry is IPRBProxyRegistry {
}

/// @inheritdoc IPRBProxyRegistry
function deployAndInstallPlugin(
IPRBProxyPlugin plugin
)
function deployAndInstallPlugin(IPRBProxyPlugin plugin)
external
onlyNonProxyOwner(msg.sender)
returns (IPRBProxy proxy)
Expand Down
36 changes: 9 additions & 27 deletions test/proxy/execute/execute.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,7 @@ contract Execute_Test is Proxy_Test {
_;
}

function testFuzz_Execute_ReturnAddress(
address input
)
function testFuzz_Execute_ReturnAddress(address input)
external
whenCallerAuthorized
whenTargetContract
Expand All @@ -227,9 +225,7 @@ contract Execute_Test is Proxy_Test {
assertEq(actualResponse, expectedResponse, "echo.echoAddress response mismatch");
}

function testFuzz_Execute_ReturnBytesArray(
bytes memory input
)
function testFuzz_Execute_ReturnBytesArray(bytes memory input)
external
whenCallerAuthorized
whenTargetContract
Expand All @@ -244,9 +240,7 @@ contract Execute_Test is Proxy_Test {
assertEq(actualResponse, expectedResponse, "echo.echoBytesArray response mismatch");
}

function testFuzz_Execute_ReturnBytes32(
bytes32 input
)
function testFuzz_Execute_ReturnBytes32(bytes32 input)
external
whenCallerAuthorized
whenTargetContract
Expand All @@ -261,9 +255,7 @@ contract Execute_Test is Proxy_Test {
assertEq(actualResponse, expectedResponse, "echo.echoBytes32 response mismatch");
}

function testFuzz_Execute_ReturnString(
string memory input
)
function testFuzz_Execute_ReturnString(string memory input)
external
whenCallerAuthorized
whenTargetContract
Expand All @@ -278,9 +270,7 @@ contract Execute_Test is Proxy_Test {
assertEq(actualResponse, expectedResponse, "echo.echoString response mismatch");
}

function testFuzz_Execute_ReturnStruct(
TargetEcho.SomeStruct memory input
)
function testFuzz_Execute_ReturnStruct(TargetEcho.SomeStruct memory input)
external
whenCallerAuthorized
whenTargetContract
Expand All @@ -295,9 +285,7 @@ contract Execute_Test is Proxy_Test {
assertEq(actualResponse, expectedResponse, "echo.echoStruct response mismatch");
}

function testFuzz_Execute_ReturnUint8(
uint8 input
)
function testFuzz_Execute_ReturnUint8(uint8 input)
external
whenCallerAuthorized
whenTargetContract
Expand All @@ -312,9 +300,7 @@ contract Execute_Test is Proxy_Test {
assertEq(actualResponse, expectedResponse, "echo.echoUint8 response mismatch");
}

function testFuzz_Execute_ReturnUint256(
uint256 input
)
function testFuzz_Execute_ReturnUint256(uint256 input)
external
whenCallerAuthorized
whenTargetContract
Expand All @@ -329,9 +315,7 @@ contract Execute_Test is Proxy_Test {
assertEq(actualResponse, expectedResponse, "echo.echoUint256 response mismatch");
}

function testFuzz_Execute_ReturnUint256Array(
uint256[] memory input
)
function testFuzz_Execute_ReturnUint256Array(uint256[] memory input)
external
whenCallerAuthorized
whenTargetContract
Expand All @@ -346,9 +330,7 @@ contract Execute_Test is Proxy_Test {
assertEq(actualResponse, expectedResponse, "echo.echoUint256Array response mismatch");
}

function testFuzz_Execute_Event(
uint256 input
)
function testFuzz_Execute_Event(uint256 input)
external
whenCallerAuthorized
whenTargetContract
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ contract DeployAndExecuteAndInstallPlugin_Test is Registry_Test {
assertEq(actualOwner, expectedOwner, "proxy owner mismatch");
}

function testFuzz_DeployAndExecuteAndInstallPlugin_UpdateProxies(
address owner
)
function testFuzz_DeployAndExecuteAndInstallPlugin_UpdateProxies(address owner)
external
whenOwnerDoesNotHaveProxy
{
Expand All @@ -72,9 +70,7 @@ contract DeployAndExecuteAndInstallPlugin_Test is Registry_Test {
}
}

function testFuzz_DeployAndExecuteAndInstallPlugin_PluginReverseMapping(
address owner
)
function testFuzz_DeployAndExecuteAndInstallPlugin_PluginReverseMapping(address owner)
external
whenOwnerDoesNotHaveProxy
{
Expand All @@ -86,9 +82,7 @@ contract DeployAndExecuteAndInstallPlugin_Test is Registry_Test {
assertEq(actualMethods, expectedMethods, "methods not saved in reverse mapping");
}

function testFuzz_DeployAndExecuteAndInstallPlugin_Event_DeployProxy(
address owner
)
function testFuzz_DeployAndExecuteAndInstallPlugin_Event_DeployProxy(address owner)
external
whenOwnerDoesNotHaveProxy
{
Expand All @@ -99,9 +93,7 @@ contract DeployAndExecuteAndInstallPlugin_Test is Registry_Test {
registry.deployAndExecuteAndInstallPlugin(target, data, plugins.basic);
}

function testFuzz_DeployAndExecuteAndInstallPlugin_Event_Execute(
address owner
)
function testFuzz_DeployAndExecuteAndInstallPlugin_Event_Execute(address owner)
external
whenOwnerDoesNotHaveProxy
{
Expand All @@ -112,9 +104,7 @@ contract DeployAndExecuteAndInstallPlugin_Test is Registry_Test {
registry.deployAndExecuteAndInstallPlugin(target, data, plugins.basic);
}

function testFuzz_DeployAndExecuteAndInstallPlugin_Event_InstallPlugin(
address owner
)
function testFuzz_DeployAndExecuteAndInstallPlugin_Event_InstallPlugin(address owner)
external
whenOwnerDoesNotHaveProxy
{
Expand Down

0 comments on commit e8d5198

Please sign in to comment.