AttributeError: 'approve' object has no attribute 'build_transaction' #312
Unanswered
eth-orangutan
asked this question in
Q&A
Replies: 2 comments
-
I'm experiencing this as well. Any progress since January ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! Trying to use v3 on Polygon to swap MATIC/USDC. Running into the error in the title (full copy below), Using the latest version of Uniswap Python.
I am able to use get_eth_balance() and get_price_impact just fine, but make_trade runs into the error below.
Traceback (most recent call last):
File "/home/michael/Documents/2023shit/swap.py", line 27, in
uniswap.make_trade(config.matic_address,
File "/home/michael/.local/lib/python3.8/site-packages/uniswap/decorators.py", line 37, in approved
self.approve(token)
File "/home/michael/.local/lib/python3.8/site-packages/uniswap/uniswap.py", line 1409, in approve
tx = self._build_and_send_tx(function)
File "/home/michael/.local/lib/python3.8/site-packages/uniswap/uniswap.py", line 1443, in _build_and_send_tx
transaction = function.build_transaction(tx_params)
AttributeError: 'approve' object has no attribute 'build_transaction'
Beta Was this translation helpful? Give feedback.
All reactions