The repository has not been cloned yet. Run the following command first
to clone the repo, check out the target commit, and install dependencies:
bash
bash /setup_files/setup.sh
The code will then be available at /testbed.
You are working on the repository mikeshultz/ledger-eth-lib (instance: mikeshultz__ledger-eth-lib-42).
The code is located in /testbed.
##39 Unable to have gas price of 0
Some dev networks allows gas price of 0 but when I try it here, I get
text
File .../ledger-eth-lib/ledgereth/transactions.py", line 217, in create_transaction
raise ValueError("gas_price or max_fee_per_gas must be provided")
ValueError: gas_price or max_fee_per_gas must be provided
The code is:
python
# we need a gas price for a valid transaction
if not gas_price and not max_fee_per_gas:
raise ValueError("gas_price or max_fee_per_gas must be provided")
it probably should be
python
# we need a gas price for a valid transaction
if gas_price is None and max_fee_per_gas is None:
raise ValueError("gas_price or max_fee_per_gas must be provided")