From 60ea73e840107e239997a803bb1b4e0b81f20e56 Mon Sep 17 00:00:00 2001 From: Dmytro Date: Mon, 23 Dec 2024 15:42:17 +0000 Subject: [PATCH] Fix linter in config controller --- .../config_controller/config_controller.py | 42 +++++++------------ 1 file changed, 16 insertions(+), 26 deletions(-) diff --git a/skale/contracts/config_controller/config_controller.py b/skale/contracts/config_controller/config_controller.py index dc450c45..13dec88f 100644 --- a/skale/contracts/config_controller/config_controller.py +++ b/skale/contracts/config_controller/config_controller.py @@ -59,34 +59,28 @@ def is_address_whitelisted(self, address: ChecksumAddress) -> bool: return bool(self.contract.functions.isAddressWhitelisted(address).call()) def is_deployment_allowed( - self, - transaction_origin: ChecksumAddress, - deployer: ChecksumAddress - ) -> bool: - return bool(self.contract.functions.isDeploymentAllowed(transaction_origin, deployer).call()) + self, transaction_origin: ChecksumAddress, deployer: ChecksumAddress + ) -> bool: + return bool( + self.contract.functions.isDeploymentAllowed( + transaction_origin, deployer + ).call() + ) @transaction_method - def grant_role( - self, - role: bytes, - address: ChecksumAddress - ) -> TxRes: + def grant_role(self, role: bytes, address: ChecksumAddress) -> TxRes: return self.contract.functions.grantRole(role, address) @transaction_method def add_allowed_origin_role_admin( - self, - role: bytes, - address: ChecksumAddress - ) -> TxRes: + self, role: bytes, address: ChecksumAddress + ) -> TxRes: return self.contract.functions.addAllowedOriginRoleAdmin(role, address) @transaction_method def allow_origin( - self, - transaction_origin: ChecksumAddress, - deployer: ChecksumAddress - ) -> TxRes: + self, transaction_origin: ChecksumAddress, deployer: ChecksumAddress + ) -> TxRes: return self.contract.functions.allowOrigin(transaction_origin, deployer) @transaction_method @@ -103,18 +97,14 @@ def renounce_role(self, role: bytes, address: ChecksumAddress) -> TxRes: @transaction_method def remove_allowed_origin_role_admin( - self, - role: bytes, - address: ChecksumAddress - ) -> TxRes: + self, role: bytes, address: ChecksumAddress + ) -> TxRes: return self.contract.functions.removeAllowedOriginRoleAdmin(role, address) @transaction_method def forbid_origin( - self, - transaction_origin: ChecksumAddress, - deployer: ChecksumAddress - ) -> TxRes: + self, transaction_origin: ChecksumAddress, deployer: ChecksumAddress + ) -> TxRes: return self.contract.functions.forbidOrigin(transaction_origin, deployer) @transaction_method