BootNodeDev / dAppBooster

A modern blockchain boilerplate built to quickly get you started with your next project.
https://dappbooster.dev
MIT License
5 stars 1 forks source link

feat: multiple changes to tokenSelect behavior #203

Closed fernandomg closed 4 months ago

fernandomg commented 4 months ago

Closes #201

Description:

As required, this PR includes changes in the app behavior.

Balances and prices are now loaded on a chain-basis.

If the network is changed from the wallet, the dApp will react accordingly. As well, if the network is modified in the dApp, it won't affect the wallet.

Furthermore, add token button will only be displayed if the token's chain matches the wallet's chain.

EDIT: I had to refactor the logic around the network validation, as I didn't tested with networks supported by the dApp but not supported in the TokenInput example. See the second video to see the current state (@gabitoesmiapodo)

Steps:

Check the video(s).

Type of change:

How Has This Been Tested?

Remember to check that:

Screenshots

https://github.com/user-attachments/assets/8090f1d0-0122-44f7-a584-649b25d46dfc

https://github.com/user-attachments/assets/41ba7bc7-c4aa-41e9-b9bc-515426a6341f

vercel[bot] commented 4 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
dappbooster ✅ Ready (Inspect) Visit Preview Aug 2, 2024 8:57am