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

Update wasm bindgen #821

Merged
merged 1 commit into from
Nov 14, 2023
Merged

Update wasm bindgen #821

merged 1 commit into from
Nov 14, 2023

Conversation

benthecarman
Copy link
Collaborator

New wasm-bindgen supports sending Vec<T> for non-async functions. Tried to implement that everywhere we can.

@TonyGiorgio
Copy link
Contributor

How does this look on the typescript side? Would it be straightfoward enough to implement? @futurepaul ?

@futurepaul
Copy link
Contributor

conceptually it sounds like a win, although in mutiny_wasm.d.ts I still see these show up as any type (rather than string[] which is what I would hope for)

but when I switch to this branch I get some panics...

Screenshot 2023-11-02 at 12 48 41 PM Screenshot 2023-11-02 at 12 49 30 PM

@TonyGiorgio
Copy link
Contributor

We're not running lightning 117 anymore. Are you correctly updating?

Copy link
Contributor

@futurepaul futurepaul left a comment

Choose a reason for hiding this comment

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

re-tested this and it's actually very helpful (more types in the frontend!). idk what I was doing wrong before. here's a frontend PR against this: MutinyWallet/mutiny-web#691

@TonyGiorgio TonyGiorgio merged commit da63e5b into master Nov 14, 2023
9 checks passed
@TonyGiorgio TonyGiorgio deleted the update-wasm-bindgen branch November 14, 2023 17:30
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