Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(amino/coin): ibc denoms should be parsable #1536

Closed
wants to merge 1 commit into from

Conversation

zakarialounes
Copy link
Contributor

Applied same regex as 643bf25#diff-9136eafb27b821610a184d11b99ace152206c81924606263f9443a75ff2865aeR28.

ps: the commit specifies that it has been merged into main and yet I don't see any changes in version v0.32.2 either via npm or this github repository.

@webmaster128
Copy link
Member

The change you are referring to is for GasPrice.fromString, i.e. parses a single amount+denom pair. parseCoins is different as it is for a list of coins. Here we have the ibc issue as well.

Unfortunately the diff is hard to review and introduces decimal amounts without any additional test. Will close this and add IBC support to parseCoins in a deparate PR.

@webmaster128
Copy link
Member

Done in #1554. Turns out, import { parseCoins } from "@cosmjs/proto-signing"; had the IBC support already but this used a more advanced version than the @cosmjs/amino one (for historic heasons).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants