LtbLightning / bdk-flutter

Bitcoin Development Kit - Flutter Package
MIT License
60 stars 27 forks source link

Exception handling with returned errors instead of panic() #40

Closed BitcoinZavior closed 1 year ago

BitcoinZavior commented 1 year ago

Currently, we are using .panic() for error handling on the rust side. Eventually, we should probably handle these cases with returned errors

aldrinzigmundv commented 10 months ago

Has this issue been fully resolved? I've checked the demo app, and even after updating the library, I still encounter unpropagated errors. For instance, when entering an incorrect number of words for the passphrase, the app crashes even though everything is enclosed within a try-catch block. Thank you.

aldrinzigmundv commented 9 months ago

NVM It was just me not puttin await so my try-catch is only gettin a Future instead of an Exception. Thanks.