Skip to content

Conversation

@OttoAllmendinger
Copy link
Contributor

Add fromStringDetectType() to auto-detect wildcards in descriptors. Replace
JsError with WasmMiniscriptError for better test ergonomics.

Issue: BTC-1826

Replaces JsError with WasmMiniscriptError.

This allows writing tests for funcs that return
`Result<_, WasmMiniscriptError>`. Previously it was a pain because
`JsError` did not implement Debug.

Issue: BTC-1826
Add fromStringDetectType() that auto-detects whether a descriptor contains
wildcards. If it does, returns a derivable descriptor, otherwise a definite
one.

Issue: BTC-1826
@OttoAllmendinger OttoAllmendinger force-pushed the BTC-1826.add-fromStringDetectType branch from f9a0423 to 1de8e99 Compare February 26, 2025 12:46
@OttoAllmendinger OttoAllmendinger marked this pull request as ready for review February 26, 2025 13:13
@OttoAllmendinger OttoAllmendinger requested a review from a team as a code owner February 26, 2025 13:13
@OttoAllmendinger OttoAllmendinger merged commit 752c5e7 into master Feb 26, 2025
2 checks passed
@OttoAllmendinger OttoAllmendinger deleted the BTC-1826.add-fromStringDetectType branch February 26, 2025 14:28
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 this pull request may close these issues.

3 participants