workbenchapp / solana-workbench

Your one-stop shop for developing on Solana
MIT License
63 stars 7 forks source link

New token mint fails on first attempt (insufficient funds) #222

Closed nathanleclaire closed 2 years ago

nathanleclaire commented 2 years ago

Excited to mint my first token in the UI, I went to the page and clicked the button ... and fell flat on my face.

Screen Shot 2022-07-13 at 2 37 52 PM

I happened to know, this was because my wallet was not funded, but users are not going to know that.

see #59 -- I strongly think we should airdrop SOL to accounts that will be paying for things automatically (or load them with Amman as such). Yes, it is educational to airdrop yourself, but --

  1. It is extremely annoying if you do a state reset of the local validator, and
  2. It adds at least the ~15 seconds to confirm the airdrop txn to the "time to first magic" metric
  3. Having a smooth onboarding is more important and users can learn this feature later if needed
SvenDowideit commented 2 years ago

yeah - this is an expansion on #203 - atm, i'm not disabling buttons that the user can't afford - aridropping on startup doesn't solve this, because it still fails later, when they run out again.

fun fact is that i'm doing quite a few tests on things with intentionally unfunded / underfunded accounts - as it seems very few dapps i've used have actually been tested for this, and their error handling is woeful.

the funnest senarios are where there are many transactions, and your account runs out mid way - no-one (so far) seems to recover and restart - so you've just lost a bunch of time and SOL.