GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — execution reverted on Sepolia · Issue #343 · uniswap-python/uniswap-python

execution reverted on Sepolia #343

New issue
Copy link
New issue
Copy link
Open
Open
execution reverted on Sepolia#343
Copy link
Labels
bugSomething isn't workingSomething isn't working

Description

@alexauvray
alexauvray
opened on Aug 11, 2023
Issue body actions

I added Sepolia constants.py. However every time I call:

from uniswap import Uniswap

version = 2                       # specify which version of Uniswap to use
provider = "https://sepolia.infura.io/v3/XYZ"    # can also be set through the environment variable `PROVIDER`
uniswap = Uniswap(address=address, private_key=private_key, provider=provider)

# Some token addresses we'll be using later in this guide
eth = "0x0000000000000000000000000000000000000000"
bat = "0x0D8775F648430679A709E98d2b0Cb6250d2887EF"
dai = "0x6B175474E89094C44Da98b954EedeAC495271d0F"

print(uniswap.get_ex_eth_balance(dai))

I get that error:

    raise ContractLogicError("execution reverted", data=data)
web3.exceptions.ContractLogicError: execution reverted

It's the same for every token.

Activity

  1. alexauvray
    added
    bugSomething isn't workingSomething isn't working
    on Aug 11, 2023
  2. alexauvray
    changed the title [-]execution reverted on Spolia[/-] [+]execution reverted on Sepolia[/+] on Aug 11, 2023
  3. liquid-8 commented on Aug 12, 2023

    @liquid-8
    liquid-8
    on Aug 12, 2023
    Member
    More actions

    Try this
    DAI https://sepolia.etherscan.io/address/0x3e622317f8c93f7328350cf0b56d9ed4c620c5d6
    BAT https://sepolia.etherscan.io/address/0x5d684d37922daf7aa2013e65a22880a11c475e25
    Also, you have to check if corresponding pools are deployed there in case you're going to test price fetching and token swaps.

  4. Yalchin403 commented on Apr 19, 2024

    @Yalchin403
    Yalchin403
    on Apr 19, 2024
    More actions

    Should we keep eth address in constants as zero address for ETH_ADDRESS when we use sepolia testnet as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.