Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module tests of the parser.rs not working #55

Closed
crisdut opened this issue Nov 6, 2022 · 0 comments · Fixed by #56
Closed

Module tests of the parser.rs not working #55

crisdut opened this issue Nov 6, 2022 · 0 comments · Fixed by #56

Comments

@crisdut
Copy link
Member

crisdut commented Nov 6, 2022

I tried test the parse tests:

cargo test --package bitcoin_scripts --lib --features all -- parser::test --nocapture

The compiler fails and returns error:

error[E0599]: no method named `compile` found for enum `Concrete` in the current scope
   --> scripts/src/parser.rs:165:134
    |
165 |           ($($arg:tt)*) => (LockScript::from(miniscript::policy::Concrete::<bitcoin::PublicKey>::from_str(&format!($($arg)*)).unwrap().compile::<...
    |                                                                                                                                        ^^^^^^^ method not found in `Concrete<bitcoin::PublicKey>`

For some reason, the macro doesn't recognize the compile method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant