From d85803070a6d6034a099ec9f9263daec7c5ba7db Mon Sep 17 00:00:00 2001 From: AlecJDavidson <44955224+AlecJDavidson@users.noreply.github.com> Date: Wed, 28 May 2025 11:45:05 -0400 Subject: [PATCH] Update uniswap.py Resolves the exception error when trying to trade eth to another coin on the same wallet. I can't remember the exact exception but this fixed it for me. --- uniswap/uniswap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uniswap/uniswap.py b/uniswap/uniswap.py index 183c349..12cc172 100644 --- a/uniswap/uniswap.py +++ b/uniswap/uniswap.py @@ -1456,7 +1456,7 @@ def _build_and_send_tx( # TODO: This needs to get more complicated if we want to support replacing a transaction # FIXME: This does not play nice if transactions are sent from other places using the same wallet. try: - return self.w3.eth.send_raw_transaction(signed_txn.rawTransaction) + return self.w3.eth.send_raw_transaction(signed_txn.raw_transaction) finally: logger.debug(f"nonce: {tx_params['nonce']}") self.last_nonce = Nonce(tx_params["nonce"] + 1)