Open HammerOfCode opened 1 year ago
hi @AnbuBlack, I solved this by using the sepolia endpoint by Infura, first create a network-config.yaml
:
live:
- name: Ethereum
networks:
- 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)
Then you can just import the network by using this command:
brownie networks import ./network-config.yaml
And make sure you have your Infura Project ID (now it's called API key) on the project's .env
file:
export WEB3_INFURA_PROJECT_ID=<your_infura_api_key_here>
thanks! Now it's working fine but I cannot get brownie to verify the smart contracts. I always end up changing "verify " from True to False so my code runs
sepolia: vrf_coordinator: "0x8103B0A8A00be2DDC778e6e7eaa21791Cd364625" eth_usd_price_feed: "0x694AA1769357215DE4FAC081bf1f309aDC325306" link_token: "0x779877A7B0D9E8603169DdbD7836e478b4624789" keyhash: "0x474e34a077df58807dbe9c96d3c009b23b3c6d0cce433e59bbf5b34f823bc56c" fee: 5000000000000000 verify: False mainnet-fork:
I got this error working with sepolia
since brownie does not contains sepolia i add the following command brownie networks add Ethereum sepolia host="https://rpc.sepolia.dev" chainid=11155111
ConnectionError: HTTPSConnectionPool(host='rpc.sepolia.dev', port=443): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0000020878F59AC0>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond'))