NeokingdomDAO / dapp

https://dapp-neokingdom.vercel.app/
0 stars 1 forks source link

Failed transaction didn't trigger error snackbar #73

Closed vrde closed 1 year ago

vrde commented 1 year ago

I tried to cast my vote but the tx failed. This can happen and it's not a problem, but the error didn't trigger any snackbar.

MetaMask - RPC Error: [ethjs-query] while formatting outputs from RPC '{"value":{"code":-32603,"data":{"jsonrpc":"2.0","id":6085377242595,"error":{"code":-32000,"message":"max fee per gas less than block base fee (28164059245 < 29715837862): insufficient fee: insufficient fee"}}}}'

vrde commented 1 year ago

I tried to vote and I got this:

image

This is an error on the EVMOS side. It doesn't show in our UI tho.

Also, the voting widget keeps spinning: image

stecb commented 1 year ago

That's superweird, as the voting call to the contract is surrounded by a trycatch that should get the error and open the snackbar. Unless there's something wrong somewhere. Will dig

stecb commented 1 year ago

this should be fixed. Feel free to reopen it @vrde if you notice something funky