trufflesuite / ganache-ui

Personal blockchain for Ethereum development
https://www.trufflesuite.com/ganache
MIT License
4.67k stars 806 forks source link

Error: sender doesn't have enough funds to send tx #842

Closed mallapurbharat closed 6 years ago

mallapurbharat commented 6 years ago

Faced buggy behaviour when sending transaction using Ganache 1.2.0. Simplest step to replicate this is to send Ether from one test account (local network) to another. Transaction fails with error "Error: sender doesn't have enough funds to send tx" even though the sender account is having 100 Ether and I'm only sending say 5 Ether.

Possibly related to another reported issue #836. Reporting separately since his steps to replicate are different and he faces issue only in particular conditions. My conditions are invariant.

send_ether_to_another_account

metamask_submit_transaction

failed_transaction

error_transaction

Expected Behavior

Transaction should go through, as there is ample funds in sender account.

Current Behavior

Transaction fails with error "Error: sender doesn't have enough funds to send tx"

Possible Solution

Downgrading to Ganache 1.1.0 fixes this issue.

mikeseese commented 6 years ago

Thanks for reporting this! This issue was originally reported under https://github.com/trufflesuite/ganache-core/issues/131 and fixed in https://github.com/trufflesuite/ganache-core/commit/7326b51645be71bd33595b61e8add386ddf0c890

ganche-cli@6.1.6 and ganache@1.2.1 fixed this issue!

However, to be thorough, I just now downloaded the 1.2.0 and 1.2.1 AppImage files and ran these on an Ubuntu 16.04 64-bit system. I was able to reproduce the issue in 1.2.0 (following your steps in the picture with different mnemonic/accounts), but was able to successfully send the transaction in 1.2.1

Please upgrade to 1.2.1; this should fix this issue.

Would love for you to make sure all ganache processes are stopped (rebooting is a for sure way to do it too), and run this minimal set of steps in 1.2.1 and let me know if you are successful or not! Thanks!

mallapurbharat commented 6 years ago

Yes, while testing out your suggestions for #841, I also tested out this feature.

If old ganache processes (1.2.0) are not running, I find that 1.2.1 works just fine while sending transactions!

Thanks for the quick suggestion!