Comments (7)
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.
Got same error with sepolia
from full-blockchain-solidity-course-py.
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.
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.
what alternatives to rinkeby network can I use?
from full-blockchain-solidity-course-py.
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.
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)
- Lesson 4 - No puedo desplegar la transaccion HOT 9
- Missing Store option on left Panel in simplestorage contract HOT 1
- Lesson 7 : Please help my end lottery function keeps getting reverted, HOT 1
- web3.py - AttributeError: 'Eth' object has no attribute 'getTransactionCount' HOT 1
- LESSON 4 error saying"solcx.exceptions.SolcNotInstalled: solc 0.6.0 has not been installed. HOT 1
- AttributeError: Contract 'FundMe' object has no attribute 'getEntranceFee' HOT 3
- Cant get to compile HOT 2
- Type Error due to environment variable and ganache HOT 1
- Lesson3 call to FundMe.getVersion error HOT 1
- Warning! Error encountered during contract execution [invalid opcode: PUSH0
- code size to deposit exceeds maximum code size HOT 1
- Could not find files for the given pattern(s)
- This error originates from a subprocess, and is likely not a problem with pip. HOT 1
- .call() function not working so I 'm not able to receive any data
- Lesson 5: brownie simple storage account address error
- Lesson 5: Error in Installing Brownie HOT 1
- Lesson 7 "test_can_end_lottery" error HOT 1
- Blockchain HOT 1
- Lesson 6 : Brownie verify HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from full-blockchain-solidity-course-py.