backpack icon indicating copy to clipboard operation
backpack copied to clipboard

provide nice error for sending tokens with insufficient balance

Open armaniferrante opened this issue 1 year ago • 6 comments

Right now we just show “Error: failed to send transaction: Transaction simulation failed: Attempt to debit an account but found no record of a prior credit.”

armaniferrante avatar Apr 04 '23 16:04 armaniferrante

Can i work on this issue? If i can, what is the expected result?

vijayabhaskar-ev avatar Apr 10 '23 13:04 vijayabhaskar-ev

Here’s a design we can go with for SOL. Ideally we’d show this if someone has a zero SOL balance, prior to attempting to perform a transaction.

image

aarongillett avatar Apr 13 '23 18:04 aarongillett

Feel free to assign yourself if you’d like to work on this @vijayabhaskar95. Thanks!

aarongillett avatar Apr 13 '23 18:04 aarongillett

And of course, ETH would be similar: image

aarongillett avatar Apr 13 '23 18:04 aarongillett

@aarongillett Should we show the above mentioned design even before the user attempt's to perform a transaction? i.e: when the user clicks on on the send button.

vijayabhaskar-ev avatar Apr 29 '23 07:04 vijayabhaskar-ev

@armaniferrante , is there any way , I can setup the backend ?

skushagra9 avatar Jan 03 '24 15:01 skushagra9