Giter VIP home page Giter VIP logo

Comments (13)

SheenyMeg avatar SheenyMeg commented on June 2, 2024 1

when I run this command, I get this error

brownie run scripts/simple_collectible/deploy_simple.py --network rinkeby

File "brownie/network/web3.py", line 171, in _expand_environment_vars
raise ValueError(f"Unable to expand environment variable in host setting: '{uri}'")
ValueError: Unable to expand environment variable in host setting: 'https://rinkeby.infura.io/v3/$WEB3_INFURA_PROJECT_ID

I have setup the WEB3_INFURA_PROJECT_ID and PRIVATE_KEY in .env file but got above issue

You should run source .env when everytime open a new terminal or shell

from nft-mix.

PatrickAlphaC avatar PatrickAlphaC commented on June 2, 2024

In your .env file, are you using:

WEB3_INFURA_PROJECT_ID=asdfasf

or

$WEB3_INFURA_PROJECT_ID=asdfasf

?

from nft-mix.

rajuu89 avatar rajuu89 commented on June 2, 2024

using WEB3_INFURA_PROJECT_ID

from nft-mix.

PatrickAlphaC avatar PatrickAlphaC commented on June 2, 2024

Yep, I've made an issue on the brownie repo. I jumped the gun here. For the time being, could you run:

export WEB3_INFURA_PROJECT_ID=asdfasf

in your shell? You can also learn how to set them here.

from nft-mix.

rajuu89 avatar rajuu89 commented on June 2, 2024

I ran this above command now I'm getting below error

ValueError: Gas estimation failed: 'insufficient funds for transfer'. This transaction will likely revert. If you wish to broadcast, you must set the gas limit manually.

from nft-mix.

PatrickAlphaC avatar PatrickAlphaC commented on June 2, 2024

You'll need rinkeby ETH and LINK in your testnet wallet connected to the private key:

https://rinkeby.chain.link/
https://faucet.rinkeby.io/

https://www.youtube.com/watch?v=P7FX_1PePX0

from nft-mix.

PatrickAlphaC avatar PatrickAlphaC commented on June 2, 2024

For the moment, I'm going to leave this issue open until brownie adds the new env var feature.

from nft-mix.

rajuu89 avatar rajuu89 commented on June 2, 2024

ok thanks let me check

from nft-mix.

rajuu89 avatar rajuu89 commented on June 2, 2024

@PatrickAlphaC when I run on local network, I got this below error

raise ValueError("Explorer API not set for this network")
ValueError: Explorer API not set for this network
Terminating local RPC client...

when I run with rinkeby network, I got this again but I have created ETH and LINK what you say in that video

ValueError: Gas estimation failed: 'insufficient funds for transfer'. This transaction will likely revert. If you wish to broadcast, you must set the gas limit manually.

from nft-mix.

PatrickAlphaC avatar PatrickAlphaC commented on June 2, 2024

You don't have any testnet LINK most likely in your wallet. Do you have Kovan LINK or Rinkeby LINK?

from nft-mix.

rajuu89 avatar rajuu89 commented on June 2, 2024

I have 200 Link in Rinkeby

from nft-mix.

PatrickAlphaC avatar PatrickAlphaC commented on June 2, 2024

Hmm.... it might still be your WEB3_INFURA_PROJECT_ID then.... What are the chances you could send a video?

from nft-mix.

PatrickAlphaC avatar PatrickAlphaC commented on June 2, 2024

You can learn more about them here too: https://www.twilio.com/blog/2017/01/how-to-set-environment-variables.html

I'm closing this for now

from nft-mix.

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.