Skip to content
Merged

fmt #60

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions test/foundry/mock/TestCallee.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down
6 changes: 4 additions & 2 deletions test/foundry/validator/SessionKeyValidator.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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))});
}
Expand Down Expand Up @@ -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) {
Expand Down