diff --git a/core/constraints/captcha.py b/core/constraints/captcha.py index 070ef11..6b83d38 100644 --- a/core/constraints/captcha.py +++ b/core/constraints/captcha.py @@ -60,7 +60,7 @@ def is_observed(self, *args, **kwargs) -> bool: context["request"] ) - turnstile_token = request_context.data.get("cf-turnstile-response") + turnstile_token = request_context.data.get("hc-turnstile-response") or request_context.data.get("cf-turnstile-response") return request_context.ip is not None and turnstile_token is not None and hcaptcha.is_verified( turnstile_token, request_context.ip diff --git a/core/constraints/zora.py b/core/constraints/zora.py index bed49bd..6d791d0 100644 --- a/core/constraints/zora.py +++ b/core/constraints/zora.py @@ -12,8 +12,8 @@ class DidMintZoraNFT(ConstraintVerification): app_name = ConstraintApp.ZORA.value _param_keys = [ConstraintParam.ADDRESS] - def __init__(self, user_profile) -> None: - super().__init__(user_profile) + def __init__(self, user_profile, *, obj=None) -> None: + super().__init__(user_profile, obj=obj) def is_observed(self, *args, **kwargs) -> bool: zora_util = ZoraUtil()