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 exponential string bug #1766

Merged
merged 1 commit into from
Sep 4, 2024
Merged

Fix exponential string bug #1766

merged 1 commit into from
Sep 4, 2024

Conversation

grod220
Copy link
Collaborator

@grod220 grod220 commented Sep 4, 2024

When we are doing an IBC-in, if the user selects a number sufficiently big, the notation will convert to the exponential form: 1.12e+20. This, however, is not a valid input as a coin amount for a ibc transfer message. It needs to be the full form.

This PR fixes this bug by overriding the default exponential config when performing the IBC-in to ensure it does not go to the exponential form.

Related: noble-assets/noble#404

@grod220 grod220 added the bug Something isn't working label Sep 4, 2024
Copy link

changeset-bot bot commented Sep 4, 2024

⚠️ No Changeset found

Latest commit: 698619d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@grod220 grod220 self-assigned this Sep 4, 2024
@grod220 grod220 merged commit ad64968 into main Sep 4, 2024
6 checks passed
@grod220 grod220 deleted the exponential-bug-fix branch September 4, 2024 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants