-
Notifications
You must be signed in to change notification settings - Fork 277
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
feat(web-demo): add wasm miniscript to web demo #5340
Conversation
237f32b
to
bbd873e
Compare
bbd873e
to
a32ab73
Compare
@@ -88,6 +88,10 @@ const rules = [ | |||
emitFile: false, | |||
}, | |||
}, | |||
{ | |||
test: /miniscript.*\.wasm$/, | |||
type: 'webassembly/sync', |
There was a problem hiding this comment.
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.
a32ab73
to
0477848
Compare
'wpkh(xpub661MyMwAqRbcFQpwd6c6aaioiXWuygdeknqE8v6PSNusNjwZypj1uXTVNysfsFPEDL6X3yS1kL6JeWyy9bAiR97Gz8KD9Z1W54uBw9U9j2t/*)'; | ||
|
||
export default function () { | ||
const [descriptorString] = useState(defaultDescriptor); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
Issue: BTC-1722