diff --git a/src/script/descriptor.cpp b/src/script/descriptor.cpp index 41fdef3ac4..2e1a30744e 100644 --- a/src/script/descriptor.cpp +++ b/src/script/descriptor.cpp @@ -1761,7 +1761,7 @@ struct KeyParser { std::vector> ParseScript(uint32_t& key_exp_index, Span& sp, ParseScriptContext ctx, FlatSigningProvider& out, std::string& error) { using namespace script; - + Assume(ctx == ParseScriptContext::TOP || ctx == ParseScriptContext::P2SH || ctx == ParseScriptContext::P2WSH || ctx == ParseScriptContext::P2TR); std::vector> ret; auto expr = Expr(sp); if (Func("pk", expr)) {