-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[Bug]: spendable balance 0uatom is smaller than 1uatom: insufficient funds with gas used #21072
Comments
Hey, as you correctly pointed out this is a feature we don't have yet. I understand that the simulation of tx would succeed on the previous version, but did the actual tx execution suceed? That is with the full amount of the wallet. What might have happened is that now the simulation is "more truer" than before, so it fails just like it would fail on execution (I haven't found it in the changelog, so it's just a guess). I think we should close this issue and track it with #17266 |
Hi @facundomedica , no this is not what I mean. The tx simulation fails now since v0.50.x |
The issue #17266 will allow estimation with full amount and fee > 0 |
From what I see, this error can only come from 2 places : cosmos-sdk/x/accounts/defaults/lockup/lockup.go Lines 564 to 574 in a020729
or cosmos-sdk/x/bank/keeper/send.go Line 252 in a020729
Same logic. That means the
|
Can you provide a practical example? Like the step by step you do to get this error, CLI commands or API requests you do. I wasn't able to replicate from CLI, I can do |
Hey @facundomedica :)
|
Hey @Ekzer didn't see your last reply, where are you getting those tx bytes? |
Hey @facundomedica ,
comes from something like that :
This works like a gem since day 1 |
Hey @Ekzer, also provide the message you are sending, as what you provided isn't enough for me to replicate. EDIT: to be clear, we need to be able to replicate the issue in order to find a fix. So please be as detailed as possible. |
Hey @facundomedica , check your Github inbox :) I invited you to the test repo : https://github.com/Ekzer/cosmjs-issue-21072 |
Btw, got the same in mainnet
|
Hey @facundomedica, were you able to reproduce it ? :) |
It looks like it has been resolved now 🤔 Can't reproduce it anymore 🎉 |
We weren't able to replicate the issue, but good to know that the problem was solved for you. |
Is there an existing issue for this?
What happened?
Hi,
version
For some reasons, since switch to v0.50.8-lsm, when I try to simulate send tx with full balance, I always get now that error :
However, I didn't change anything regarding simulation.
I simulate with fee=0 in reference to that previous issue #17266
and then calculate the right amount to withdraw including fees.
This works since the beginning
Cosmos SDK Version
v0.50.8-lsm
How to reproduce?
It only fails on testnet right now. Mainnet is working still
You can try with these inputs :
Want to withdraw the full balance of this one for example https://www.mintscan.io/cosmoshub-testnet/address/cosmos16dqvl86kc5lr9q8r5e0cyln4gat45h9zqhptx3/
but you can pick any random address with some tokens, this results the same
EDIT :
After some more investigations, it works if you subtract 1 uatom to the amount...
The text was updated successfully, but these errors were encountered: