Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

"Upfront cost exceeds account balance" on Besu private zero gas network #6190

@gomezgoiri

Description

@gomezgoiri

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:

  1. Create a free gas network using Quorum-dev-quickstart: npx quorum-dev-quickstart@latest --clientType besu --orchestrate false --quorumKeyManager false --privacy false --monitoring none --blockscout false
  2. Run the network: docker compose up -d
  3. Deploy any smart contract. To test it, you can use this project.

Expected Behavior

Get information about the deployed contracts and their addresses.

Actual Results

Truffle returns the following error: Upfront cost exceeds account balance.

Environment

  • Operating System: Ubuntu
  • Ethereum client: Besu. Although I tested with many configurations, the default one with quorum-dev-quickstart uses version 23.4.1 and QBFT as a consensus algorithm.
  • Truffle version (truffle version): 5.11.3
  • node version (node --version): 18.17.1
  • npm version (npm --version): 9.6.7

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions