waitForBalanceChange <bug>
Closed this issue · 2 comments
a402942988 commented
Here's a bug encountered with waitForBalanceChange:
After a successful transfer, if BigInteger initialBalance = getBalance(); retrieves the balance after the transfer, it will cause an issue where the process keeps waiting indefinitely.
This happens because the initial balance is set to the post-transfer amount, making the system think no change has occurred.
neodix42 commented
waitForBalanceChange() should be called right after TX has been sent, in that way balance is not updated yet. Obviously if you call it with a delay you might get the status with the updated balance.
a402942988 commented
Thanks!