spacemeshos / smapp-lite

The light wallet application for Spacemesh network
3 stars 2 forks source link

Fix: show "Unknown fee" if tx published before got response from API #32

Closed brusherru closed 4 months ago

brusherru commented 4 months ago

@dioexul found and issue: When User submits a transaction before got response from EstimateGas endpoint, app crashes with an error. With this fix in such a case "Unknown fee" will be displayed and later replaced with an actual one.

How to reproduce / test

  1. Prepare the transaction, but before clicking on "Next" button turn off the internet (you can use Throttling feature in developer tools on the network tab).
  2. Click "Next" and then click "Sign & Publish"
  3. Type the password in BUT don't publish yet
  4. Turn on internet (you may switch "No internet" to "Slow 3G" in throttling dropdown)
  5. And then click on Publish button quickly (to publish it before EstimateGas API will respond)
github-actions[bot] commented 4 months ago

You can preview the changes at : https://11171592.smapp-lite-prod.pages.dev