-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update utils.go bugfix: compare 2 DenomUnit variable wrong because they are pointers * Bugfix:fetch decimal from cosmos coin metadata decimals := uint8(coinMetadata.DenomUnits[0].Exponent) The original code maybe OK for evmos itself. However, it may causes incorrect decimal value 1. in the metadata validation func: cosmos-sdk/x/bank/types/metadata.go: Metadata.Validate() it makes sure Denomination units are sorted in ascending order. 2. https://docs.evmos.org/modules/erc20/01_concepts.html "Coin Metadata to ERC20 details" informaiton * add unit test code for compare 2 donom metadata * revise testing code Co-authored-by: Andy Wronski <[email protected]> Co-authored-by: Federico Kunze Küllmer <[email protected]>
- Loading branch information
1 parent
08cc981
commit 5aca291
Showing
3 changed files
with
113 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters