Due to some weird behaviour on the Contract container, I am getting this error in the JavaScript console of the DApp: Error: sender doesn't have enough funds to send tx. The upfront cost is: 20000000000000000 and the sender's account only has: 0
This happens after loading the network, and the Contract container starts outputting such lines in fast succession, possibly using up all the funds:
I get this error/behaviour only sometimes. I tried restarting the network, restarting the machine and the behaviour stays the same (sometimes). I left the machine off for a couple of days, and now all was running fine. It seems to be unpredictable.
It prevents the Dapp from doing anything that requires gas, so wherever you managed to reach until the Contract container starts acting up. Contract deployment with truffle is also limited/not possible.
I didn’t change anything in the setup, it seemed to just happen. I run my network using ./launch.bash -s -t. It seemed to be happening if I run it more than once or if I run spawn_workers.bash 2 more than once, but I just tried now and could not reproduce it.
I am also not sure if a Dapp has to be running initially for this to start happening at all. It started happening when I had a Dapp running, but also got the same behaviour in the Contract container without a Dapp running.
Hi @myked – sorry for the delay in response here. The bad news is, I’m not sure what exactly was causing your issue. The good news is, we have a new beta release out (and previous version is deprecated).
Let me know if you have a chance to run through this (and hopefully you don’t encounter the same problem again). We’ll hopefully have an update with a swifter setup process as well shortly.