Skip to content

Commit d858030

Browse files
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.
1 parent f5a9e86 commit d858030

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

uniswap/uniswap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1456,7 +1456,7 @@ def _build_and_send_tx(
14561456
# TODO: This needs to get more complicated if we want to support replacing a transaction
14571457
# FIXME: This does not play nice if transactions are sent from other places using the same wallet.
14581458
try:
1459-
return self.w3.eth.send_raw_transaction(signed_txn.rawTransaction)
1459+
return self.w3.eth.send_raw_transaction(signed_txn.raw_transaction)
14601460
finally:
14611461
logger.debug(f"nonce: {tx_params['nonce']}")
14621462
self.last_nonce = Nonce(tx_params["nonce"] + 1)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy