Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

make_trade ends with error but no material exception provided#395

wkaszycki started this conversation inGeneral
Discussion options

Hello guys! I am trying this library, and it seems like the code to make_trade does not work properly and does not produces any readable exceptions. Did anyone experience similar situation?

        uniswap = Uniswap(address=sub_wallet.address, private_key=sub_wallet._private_key.hex(), version=2,                          provider=INFURA_URL)        try:            tx = uniswap.make_trade(                amount_in,  # ETH to spend                token_address,  # token to buy                {'from': sub_wallet.address, 'gas': trade_gas_limit, 'gasPrice': gas_price}            )            receipt = w3.eth.wait_for_transaction_receipt(tx)        except Exception as e:            results.append(f"Error on wallet {sub_wallet.address}: {str(e)}")
You must be logged in to vote

Replies: 1 comment

Comment options

import logging
logging.basicConfig(level=logging.DEBUG)

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
General
Labels
None yet
2 participants
@wkaszycki@hoalongdao

[8]ページ先頭

©2009-2025 Movatter.jp