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

fix: check broadcast param as string #4152

Merged
merged 1 commit into from
Aug 31, 2023
Merged

Conversation

fbwoolf
Copy link
Contributor

@fbwoolf fbwoolf commented Aug 30, 2023

Try out this version of the Hiro Wallet - download extension builds.

This PR fixes the ME bug with the popup not closing. They are sending the new broadcast param as false, but my check was for it being present not as the string true. When calling tx.finalize() it errored (which makes sense bc we weren't supposed to call it for ME) > didn't close popup > they proceeded to broadcast the tx on their own. I added a try/catch here around finalizing the tx too so that it will route to the error page correctly.

Screen Shot 2023-08-30 at 1 16 14 PM

Also, there have been reports of our docs saying the network defaults to the current network, but I noticed here when the rpc method was added, we default to mainnet ...so I removed that too.

Fixed a minor UI bug in the GenericError component ...and fixed a console error with an h1 tag.

@fbwoolf fbwoolf force-pushed the fix/psbt-broadcast-param-check branch from 4f9ba97 to 4b7a0f4 Compare August 31, 2023 14:21
@vercel vercel bot temporarily deployed to Preview August 31, 2023 14:22 Inactive
@kyranjamie kyranjamie added this pull request to the merge queue Aug 31, 2023
Merged via the queue into dev with commit 887e9d9 Aug 31, 2023
31 checks passed
@kyranjamie kyranjamie deleted the fix/psbt-broadcast-param-check branch August 31, 2023 14:52
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.

After clicking confirm with any PSBT on ME the window stays open yet sends the transaction
3 participants