This PR fixes the issue that was impeding to use the application to Martin, there was an issue with the amount of tokens that he had, it adds the following changes:
Fixes
issue when user has a big amount of crc tokens, the main issue was using parseInt instead of using them as BigNumbers
use new transformation from number to string in useMintGroupToken hook
Changes
formatToken does not return a number anymore, adds a fromBN method
conversion function from string to circles and tc amounts does not convert to numbers anymore
How to Test
To test this fixes we need to import the Martin safe address account into the your safe app:
Martin Address: 0x42cEDde51198D1773590311E2A340DC06B24cB37
After that, do the usual steps:
import the custom safe app
as we aren't the owners of the safe, we will only be able to navigate the app
related #143
Description
This PR fixes the issue that was impeding to use the application to Martin, there was an issue with the amount of tokens that he had, it adds the following changes:
How to Test
To test this fixes we need to import the Martin safe address account into the your safe app:
After that, do the usual steps:
Example
initial page![image](https://user-images.githubusercontent.com/13955827/181382000-36755a76-21fc-47f2-8eb2-3c2cfad17e7c.png)
mint group shisus group page![image](https://user-images.githubusercontent.com/13955827/181382041-86f4ce36-4e78-4ccc-99ea-ddc8877f9d91.png)