Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

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

Closed
princesinha19 opened this issue Aug 28, 2018 · 5 comments
Closed

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

princesinha19 opened this issue Aug 28, 2018 · 5 comments

Comments

@princesinha19
Copy link

princesinha19 commented Aug 28, 2018

I have the issue "Error: sender doesn't have enough funds to send tx. The upfront cost is: 6000000000000000 and the sender's account only has: 0". It occurs every time after doing first transaction.
My ganache version is:-
screenshot from 2018-08-28 13-06-19

@davidmurdoch
Copy link
Member

Thanks @princesinha19 for reporting this. Can you provide steps to reproduce?

@davidmurdoch
Copy link
Member

Possibly related to trufflesuite/ganache#161

@princesinha19
Copy link
Author

yes @davidmurdoch.
Steps to reproduce

  1. Run ganache in background using command nohup ganache-cli -h 0.0.0.0 -p 8545 &>/dev/null &
  2. Deploy contract and then do one transaction.
  3. On next transaction it shows error "Error: sender doesn't have enough funds to send tx. The upfront cost is: 6000000000000000 and the sender's account only has: 0"

@mikeseese
Copy link
Contributor

@princesinha19 Unfortunately we can't reproduce the error with your steps. Given your error, it seems that you're not using the correct account in your transaction. Please reopen if you have specific reproduction steps. Sorry we couldn't be more help!

@princesinha19
Copy link
Author

I have solved this issue by removing -h 0.0.0.0 parameter from the command.
Thanks for your comments @davidmurdoch @seesemichaelj.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants