-
Notifications
You must be signed in to change notification settings - Fork 2.3k
"Upfront cost exceeds account balance" on Besu private zero gas network #6190
Comments
Thanks for the report! We'll have to try to see what's going on here. |
@gomezgoiri, sharing my solution here, as I've just hit the same error as you described here, but the difference is I setup my Besu development private network from scratch instead of using So, the alloc section in my genesis file looks like below, the last part is my wallet address -
Hope this helps :-). |
Thanks @yunxi-zhang, but your solution does not really address my actual problem of deploying a contract to a zero gas network using any account with Truffle 😞 Anyway, few days after I opened this issue Consensys announced that they were sunsetting Truffle, so I moved to Hardhat where everything works fine ️🌈 |
Issue
I want to deploy a smart contract in a free gas private network with Truffle. Although Besu seems to work as expected, Truffle returns the following error if the deploying account has zero balance:
Upfront cost exceeds account balance error
.Steps to Reproduce
I've found this error with many configurations (IBFT2, QBFT, different Besu versions), but here I'll describe the simplest way to reproduce it:
Expected Behavior
Get information about the deployed contracts and their addresses.
Actual Results
Truffle returns the following error:
Upfront cost exceeds account balance
.Environment
truffle version
): 5.11.3node --version
): 18.17.1npm --version
): 9.6.7The text was updated successfully, but these errors were encountered: