- Notifications
You must be signed in to change notification settings - Fork388
Open
Description
Describe the bug
Running the make_trade_output returns the following error and fails - KeyError: 'baseFeePerGas'
To Reproduce
from uniswap import Uniswapfrom web3 import Web3from web3.middleware import geth_poa_middlewarefrom eth_account import Accountimport configimport randomimport timeweb3 = 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 = 2uniswap = 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)