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

feat(web-demo): add wasm miniscript to web demo #5340

Merged
merged 2 commits into from
Jan 8, 2025

Conversation

OttoAllmendinger
Copy link
Contributor

@OttoAllmendinger OttoAllmendinger commented Jan 7, 2025

  • feat(web-demo): add wasm-miniscript to web demo
    Issue: BTC-1722

@OttoAllmendinger OttoAllmendinger force-pushed the BTC-1722.add-wasm-miniscript-to-web-demo branch from 237f32b to bbd873e Compare January 7, 2025 14:11
@OttoAllmendinger OttoAllmendinger changed the title BTC 1722.add wasm miniscript to web demo feat(web-demo): add wasm miniscript to web demo Jan 7, 2025
@lcovar lcovar requested a review from bitgoAaron January 7, 2025 17:21
@OttoAllmendinger OttoAllmendinger force-pushed the BTC-1722.add-wasm-miniscript-to-web-demo branch from bbd873e to a32ab73 Compare January 8, 2025 13:39
@@ -88,6 +88,10 @@ const rules = [
emitFile: false,
},
},
{
test: /miniscript.*\.wasm$/,
type: 'webassembly/sync',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some reason webassembly/async does not work here. The import stays in some sort of deferred state.

@OttoAllmendinger OttoAllmendinger force-pushed the BTC-1722.add-wasm-miniscript-to-web-demo branch from a32ab73 to 0477848 Compare January 8, 2025 14:30
@OttoAllmendinger OttoAllmendinger marked this pull request as ready for review January 8, 2025 15:02
@OttoAllmendinger OttoAllmendinger requested review from a team as code owners January 8, 2025 15:02
'wpkh(xpub661MyMwAqRbcFQpwd6c6aaioiXWuygdeknqE8v6PSNusNjwZypj1uXTVNysfsFPEDL6X3yS1kL6JeWyy9bAiR97Gz8KD9Z1W54uBw9U9j2t/*)';

export default function () {
const [descriptorString] = useState(defaultDescriptor);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NIT: you do not need useState for this

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted to make this more interactive but didn't get around to it

@OttoAllmendinger OttoAllmendinger merged commit 6f6d2c0 into master Jan 8, 2025
8 checks passed
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