-
Notifications
You must be signed in to change notification settings - Fork 351
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
Panic when send tx and set fees without typing unit. #2857
Comments
Hey again @HoytRen, I believe this is intented behavior from the cosmos-sdk. If you think this should be changed, then I would reccomend moving this upstream. There might be a way to pick a default denomination for fees, but I'm not sure we would adopt such a feature without it also being adopted upstream. If this is a bug or something else, please elaborate further. If it is not a bug, then please close this issue 🙂 thanks! |
Hi, @evan-forbes don't see you for a while. I believe it just need to be wrapped with a error prompt. I may have time to look into the code on thursday or friday. |
I checked the code and need more time to work out a solution because the sdk doesn't throw out errors by design. Hardcoding the error prompt could be a solution, but can not be pushed back to upstream, then I need to think about a better solution so that we don't need to maintain the modification over and over again. |
Finally, I've completed a patch. Now the issue is, I not only modified a lot of code inside the SDK but also changed a file in this repo. If the two repos are not modified simultaneously, it will result in build errors. This is the first time I've encountered such a situation in the Celestia project. How should I submit the changes? Please provide me with some guidance. |
Maybe, I should close this issue, and try a PR to Cosmos SDK, and wait until Celestia imports the new version of SDK? |
I checked the latest version of Cosmos SDK, this problem is fixed already, then, let me close this issue and simply wait for bump up of the sdk. |
Thanks for investigating this! Out of curiosity which Cosmos SDK version fixes this? celestia-app currently uses a fork of cosmos-sdk that we regularly pull upstream changes from. Ref: https://github.com/celestiaorg/cosmos-sdk/releases/tag/v1.20.0-sdk-v0.46.16 which is based on Cosmos SDK v0.46.16 |
Oh, I made a typo, I mean the latest code in cosmos's main branch. https://github.com/cosmos/cosmos-sdk/tree/main In their code, you could find:
which do not cause panic. |
Summary of Bug
It's panic because '21500' but not '21500utia'.
Version
1.3.0 on mainnet.
The text was updated successfully, but these errors were encountered: