-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Transaction failed when multi addresses in one wallet. #1007
Comments
So it fail when it need to split the amount, right? |
Not for all, but seems for NEO transaction, 1/2 of the |
I send 10 to one, 5 to other, and send back 15 to the original, and all works as expected, could you provide me a small sample ? |
@shargon here is a small sample |
With gas could be different, because maybe it need more gas for the fee. Could you provide me a small example with neo? i think that is easier to test with neo |
|
This code Lines 306 to 320 in 68271a9
Should be executed outside the loop, and the loop, shoud be only for find the gas account |
Nice catch team 😉 ! @superboyiii @nicolegys |
You apply the patch 😉 |
@shargon Thanks for your investigation. |
It's a bit odd, but it's true. When multi addresses are generated in a wallet, no need too many, two or three addresses is enough, and then send a bit gas to each one. Then if you make a transaction and if the

from
address has more than double of your transfer value, the tx will be made successfully. Else, it will returnFailed execution
. My example is like this:For example, when
value
is 150 or 140, it will choose the 5th or the 7th address. They have balance of 150, and 150 and 140 is more than 150/2, then execution failed.The text was updated successfully, but these errors were encountered: