5afe / safe-core-sdk-demo

Account Abstraction with Safe{Core} SDK
https://safe-account-abstraction-demo.netlify.app/
GNU General Public License v3.0
35 stars 24 forks source link

[Improvement] Disable button to continue to relayer demo if the safe has no funds #2

Closed JagoFigueroa closed 1 year ago

JagoFigueroa commented 1 year ago

Description

It would be nice to not allow users to continue with the relayer demo flow when the transaction is sure to fail due to a lack of funds on the Safe.

Steps to reproduce

Open the demo app on a chain where a safe account that has not been created yet and has no funds.

Obtained result

Possible to continue with the flow when it is certain to fail.

Screenshot 2023-03-03 at 12 21 14

Expected result

Unable to continue with the flow and send a relayed transaction.

To keep things simple I would disable the 'Go to relayer demo' only when funding is 0.00

Screenshot 2023-03-03 at 12 13 22
JagoFigueroa commented 1 year ago

Closing this ticket as it does not make too much sense to tackle it on the redesigned interface (user is free to move between kits freely now).