From e529b7978261e145c00e76833b7b95acf77e28c4 Mon Sep 17 00:00:00 2001 From: leekt Date: Wed, 9 Aug 2023 00:44:14 +0900 Subject: [PATCH] kilswitch --- src/validator/KillSwitchValidator.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/validator/KillSwitchValidator.sol b/src/validator/KillSwitchValidator.sol index f50dff7c..a95c6d6c 100644 --- a/src/validator/KillSwitchValidator.sol +++ b/src/validator/KillSwitchValidator.sol @@ -46,7 +46,7 @@ contract KillSwitchValidator is IKernelValidator { override returns (uint256) { - KillSwitchValidatorStorage storage validatorStorage = killSwitchValidatorStorage[_userOp.sender]; + KillSwitchValidatorStorage storage validatorStorage = killSwitchValidatorStorage[msg.sender]; // should use msg.sender to prevent others from changing storage uint48 pausedUntil = validatorStorage.pausedUntil; uint256 validationResult = 0; if (address(validatorStorage.validator) != address(0)) {