From 0fe34f84123ed69afa2d5ea4b0f6f56a3bc31abf Mon Sep 17 00:00:00 2001 From: Dmytro Stebaiev Date: Tue, 3 Sep 2024 18:14:46 +0300 Subject: [PATCH] Remove redundant check --- contracts/PaymasterController.sol | 6 ------ 1 file changed, 6 deletions(-) diff --git a/contracts/PaymasterController.sol b/contracts/PaymasterController.sol index 030d4885..9c2b08da 100644 --- a/contracts/PaymasterController.sol +++ b/contracts/PaymasterController.sol @@ -102,16 +102,10 @@ contract PaymasterController is IPaymasterController, Permissions { override onlyPaymasterSetter { - if (!marionetteAddress.isContract()) { - revert IsNotContract(marionetteAddress); - } marionette = IMarionette(marionetteAddress); } function setPaymasterAddress(address paymasterAddress) external override onlyPaymasterSetter { - if (!paymasterAddress.isContract()) { - revert IsNotContract(paymasterAddress); - } paymaster = IPaymaster(paymasterAddress); }