From c4fbfb689bc758630e5b5b5f7228b6f0d9e05a63 Mon Sep 17 00:00:00 2001 From: Greg Heartsfield Date: Sat, 15 Oct 2022 17:15:59 -0500 Subject: [PATCH] wip: return parsed cond query --- src/delegation.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/delegation.rs b/src/delegation.rs index 99134ee..de324e4 100644 --- a/src/delegation.rs +++ b/src/delegation.rs @@ -102,7 +102,8 @@ pub fn validate_delegation( if let Ok(pubkey) = XOnlyPublicKey::from_str(delegator) { let verify = SECP.verify_schnorr(&sig, &msg, &pubkey); if verify.is_ok() { - Some(ConditionQuery { conditions: vec![] }) + // return the parsed condition query + cond_query.parse::().ok() } else { None }