From 169b78039d910c66bde30afde677f59bf3a7af31 Mon Sep 17 00:00:00 2001 From: leekt Date: Thu, 14 Dec 2023 20:42:22 +0900 Subject: [PATCH] fmt --- test/foundry/mock/TestCallee.sol | 4 +--- test/foundry/validator/SessionKeyValidator.t.sol | 6 ++++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/foundry/mock/TestCallee.sol b/test/foundry/mock/TestCallee.sol index 05b26543..d3528a9f 100644 --- a/test/foundry/mock/TestCallee.sol +++ b/test/foundry/mock/TestCallee.sol @@ -10,9 +10,7 @@ contract TestCallee { } function transferErc20Tester(address token, address to, uint256 amount) external { - (bool success, bytes memory data) = token.call( - abi.encodeWithSignature("transfer(address,uint256)", to, amount) - ); + (bool success, bytes memory data) = token.call(abi.encodeWithSignature("transfer(address,uint256)", to, amount)); require(success, string(data)); } diff --git a/test/foundry/validator/SessionKeyValidator.t.sol b/test/foundry/validator/SessionKeyValidator.t.sol index 84de33ed..e9b75105 100644 --- a/test/foundry/validator/SessionKeyValidator.t.sol +++ b/test/foundry/validator/SessionKeyValidator.t.sol @@ -72,7 +72,8 @@ contract SessionKeyValidatorTest is KernelECDSATest { } ParamRule[] memory paramRules = new ParamRule[](2); if (isDelegateCall) { - paramRules[0] = ParamRule({offset: 0, condition: ParamCondition(0), param: bytes32(uint256(uint160(recipient)))}); + paramRules[0] = + ParamRule({offset: 0, condition: ParamCondition(0), param: bytes32(uint256(uint160(recipient)))}); } else { paramRules[0] = ParamRule({offset: 0, condition: ParamCondition(i % 6), param: bytes32(uint256(100))}); } @@ -405,7 +406,8 @@ contract SessionKeyValidatorTest is KernelECDSATest { config.paymasterMode = config.paymasterMode % 3; config.usingPaymasterMode = config.usingPaymasterMode % 3; bool shouldFail = (config.usingPaymasterMode < config.paymasterMode) || (1000 < config.validAfter) - || config.faultySig || (config.param1Faulty && !config.isDelegateCall) || config.param2Faulty || config.wrongProof; + || config.faultySig || (config.param1Faulty && !config.isDelegateCall) || config.param2Faulty + || config.wrongProof; config.runs = config.runs % 10; config.earlyRun = config.runs == 0 ? 0 : config.earlyRun % config.runs; if (config.interval == 0 || config.validAfter == 0) {