includes offchain condition class resolution in top level validator

pull/3554/head
KPrasch 2024-06-19 20:06:50 +08:00 committed by derekpierre
parent 0d9489762f
commit ed34186255
No known key found for this signature in database
1 changed files with 2 additions and 0 deletions

View File

@ -417,6 +417,7 @@ class ConditionLingo(_Serializable):
conditions expression framework.
"""
from nucypher.policy.conditions.evm import ContractCondition, RPCCondition
from nucypher.policy.conditions.offchain import OffchainCondition
from nucypher.policy.conditions.time import TimeCondition
# version logical adjustments can be made here as required
@ -427,6 +428,7 @@ class ConditionLingo(_Serializable):
ContractCondition,
RPCCondition,
CompoundAccessControlCondition,
OffchainCondition,
):
if condition.CONDITION_TYPE == condition_type:
return condition