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:
[x] New feature
[ ] Bug fix
[x] Breaking change
[x] Enhancement
[x] Refactoring
[ ] Chore
How Has This Been Tested?
[ ] Manual testing
[ ] Automated tests
[ ] Other (explain)
Remember to check that:
Your code follows the style guidelines of this project
You have performed a self-review of your code
You have commented your code in hard-to-understand areas
You have made corresponding changes to the documentation
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