from uniswap import Uniswap
from web3 import Web3
from web3.middleware import geth_poa_middleware
from eth_account import Account
import config
import random
import time
web3 = Web3(Web3.HTTPProvider(config.provider))
web3.middleware_onion.inject(geth_poa_middleware, layer=0)
private_key = "Place private key here"
account = Account.from_key(private_key)
address = Web3.to_checksum_address(account.address)
version = 2
uniswap = Uniswap(address=address, private_key=private_key, version=version, web3=web3)
bnb = Web3.to_checksum_address("0x242a1ff6ee06f2131b7924cacb74c7f9e3a5edc9")
token = Web3.to_checksum_address("token address")
swap_qty = int(1*10**18)
fee = int(0.0004*10**18)
uniswap.make_trade_output(bnb, token, swap_qty, fee=fee)
Describe the bug
Running the make_trade_output returns the following error and fails - KeyError: 'baseFeePerGas'
To Reproduce