Skip to content

Commit 1fd2bd6

Browse files
committed
fix: code quality
1 parent fd74ddc commit 1fd2bd6

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

‎extensions/business/dauth/dauth_manager.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
from extensions.business.mixins.request_tracking_mixin import _RequestTrackingMixin
2626
from extensions.business.dauth.dauth_mixin import _DauthMixin
2727

28-
__VER__ = '0.2.3'
28+
__VER__ = '0.3.0'
2929

3030
_CONFIG = {
3131
**BasePlugin.CONFIG,

‎extensions/business/dauth/dauth_mixin.py‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -300,9 +300,8 @@ def fill_dauth_data(
300300

301301
# set supervisor secrets if this is a protocol oracle; dAuth-only secrets
302302
# are additionally gated by the dAuth oracle registry.
303-
requester_is_oracle = is_node and requester_node_address in oracles
304-
requester_is_dauth_oracle = False
305-
if requester_is_oracle:
303+
if is_node and requester_node_address in oracles:
304+
requester_is_dauth_oracle = False
306305
try:
307306
requester_is_dauth_oracle = self.bc.is_dauth_oracle(node_address_eth=sender_eth_address)
308307
except Exception as e:
@@ -312,12 +311,10 @@ def fill_dauth_data(
312311
)
313312
# end try
314313

315-
if requester_is_oracle:
316314
dauth_data["EE_SUPERVISOR"] = True
317-
dauth_oracle_only_keys = getattr(self, "cfg_dauth_oracle_only_supervisor_keys", [])
318315
for key in self.cfg_supervisor_keys:
319316
if isinstance(key, str) and len(key) > 0:
320-
if key in dauth_oracle_only_keys and not requester_is_dauth_oracle:
317+
if key in self.cfg_dauth_oracle_only_supervisor_keys and not requester_is_dauth_oracle:
321318
continue
322319
dauth_data[key] = self.os_environ.get(key)
323320
# end if

0 commit comments

Comments
 (0)