Giter VIP home page Giter VIP logo

Comments (7)

Rhaegar0x00 avatar Rhaegar0x00 commented on June 6, 2024 5

I find the right way to add sepolia to brownie , just use it and everything will be fine :
brownie networks add Ethereum sepolia2 host='https://sepolia.infura.io/v3/$WEB3_INFURA_PROJECT_ID' chainid=11155111 explorer=https://api-sepolia.etherscan.io/api
I think we missed explorer for evm know where do you want to verify contract

from full-blockchain-solidity-course-py.

Stefs-2142 avatar Stefs-2142 commented on June 6, 2024

Got same error with sepolia

from full-blockchain-solidity-course-py.

hbarrabasqui avatar hbarrabasqui commented on June 6, 2024

I have a similar problem. The Rinkeby network is no longer working, I am using the Sepolia network. Up to now things have worked, but when I want to verify a contract problems come up. I have used the Keys API from etherscan.io . I add these API Keys to the .env file as explained in Vasiliy Gualoto's video time 6:27 (https://www.youtube.com/watch?v=yN3zpI3sNAE&t=23701s&ab_channel=Chainlink). I also updated the deploy.py file, but when executing the command in the terminal I get an error that I don't know how to solve. Here I show you the command and the result


(brownieProjects) horacio@DESKTOP-DJSHN39:~/demos/brownie_fund_me$ brownie run scripts/deploy.py --network sepolia
Brownie v1.19.3 - Python development framework for Ethereum

BrownieFundMeProject is the active project.

Running 'scripts/deploy.py::main'...
Transaction sent: 0x4c9bf09e62deb5618416c4211327450e04766cc03b1428ded9efb8d1307af823
Gas price: 1.00000001 gwei Gas limit: 396416 Nonce: 48
FundMe.constructor confirmed Block: 3465410 Gas used: 360379 (90.91%)
FundMe deployed at: 0x11796C04C240b34b9B4963EC05D646dE66F62540

File "brownie/_cli/run.py", line 51, in main
return_value, frame = run(
File "brownie/project/scripts.py", line 110, in run
return_value = f_locals[method_name](*args, **kwargs)
File "./scripts/deploy.py", line 15, in main
deploy_fund_me()
File "./scripts/deploy.py", line 11, in deploy_fund_me
fund_me = FundMe.deploy({"from":account}, publish_source=True)
File "brownie/network/contract.py", line 549, in call
return tx["from"].deploy(
File "brownie/network/account.py", line 557, in deploy
contract.publish_source(deployed_contract, silent=silent)
File "brownie/network/contract.py", line 338, in publish_source
raise ValueError("Explorer API not set for this network")
ValueError: Explorer API not set for this network
(brownieProjects) horacio@DESKTOP-DJSHN39:~/demos/brownie_fund_me$


Somebody has the same problem? I do not know what is the meaning of "Explorer API not set for this network".
Thank you!!

from full-blockchain-solidity-course-py.

hbarrabasqui avatar hbarrabasqui commented on June 6, 2024

I forgot to indicate that I added the sepolia network to Brownie and it is displayed like this:

The following networks are declared:

Ethereum
├─Mainnet (Infura): mainnet
├─Ropsten (Infura): ropsten
├─Rinkeby (Infura): rinkeby
├─Goerli (Infura): goerli
├─Kovan (Infura): kovan
└─sepolia: sepolia

Ethereum Classic
├─Mainnet: etc
└─Kotti: kotti
.
.
.
Is it correct to see it like this? Could there have been an error adding it? Thank you!!

from full-blockchain-solidity-course-py.

mule-codex avatar mule-codex commented on June 6, 2024

what alternatives to rinkeby network can I use?

from full-blockchain-solidity-course-py.

hbarrabasqui avatar hbarrabasqui commented on June 6, 2024

For my problem, after searching a lot, I found a solution and I was finally able to verify the smart contract in brownie. I went into .brownie\network-config and replaced the sepolia data with the following:


-chainid: 11155111
explorer: https://api-sepolia.etherscan.io/api
host: https://sepolia.infura.io/v3/$WEB3_INFURA_PROJECT_ID
id:sepolia
multicall2: '0x5BA1e12693Dc8F9c48aAD8770482f4739bEeD696'
name: Sepolia (Infura)
provider: infura


I redisplayed the contract and brownie verified it. I could check it at https://sepolia.etherscan.io/

I found this information at: https://ethereum.stackexchange.com/questions/147238/infura-network-support-for-sepollia-in-brownie

from full-blockchain-solidity-course-py.

marginalfriend avatar marginalfriend commented on June 6, 2024

I have kinda similar error with @hbarrabasqui it says

ValueError: Explorer API not set for this network

And I figured out how to set the explorer API. You just have to modify the network through the terminal:

\brownie_fund_me> brownie networks modify sepolia explorer=https://api-sepolia.etherscan.io/api

If your sepolia network has the same name as mine, it is supposed to be working well

from full-blockchain-solidity-course-py.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.