Questions tagged [brownie]

236 questions
3
votes
4 answers

ETH-BROWNIE install issue - windows - pipx

So I am trying to install eth-brownie via pipx as recommended, this on Windows. I tried everything also multiple re-installs of EVERYTHING including python. This one error just isn't fixable for me and googling this doesn't help. PS…
3
votes
1 answer

brownie mainnet-fork issue when trying to interact with contract: 'ValueError: invalid literal for int() with base 16: '''

I'm following the instructions here to interact with forked mainnet contracts using brownie. The three lines of code suggested are: address = "0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419" oracle =…
Nik Shah
  • 31
  • 2
3
votes
2 answers

brownie-config remappings error when trying to import from chainlink

I am trying to import this code import "@chainlink/contracts/src/v0.6/interfaces/AggregatorV3Interface.sol"; import "@chainlink/contracts/src/v0.6/vendor/SafeMathChainlink.sol"; but "Source…
3
votes
5 answers

ParserError: Source file requires different compiler version

I tried all that you mentioned in the discussion here (in other questions) and at https://github.com/smartcontractkit/full-blockchain-solidity-course-py/discussions/522 , however it is not solving the issue for me, I also noticed that the current…
Ross Ferns
  • 39
  • 1
  • 1
  • 4
3
votes
2 answers

Trouble using python/brownie in WSL

I'm trying to complete the simple collectible NFT tutorial from this freeCodeCamp video. (I'm getting stuck on the script that starts exactly where the link is timestamped to.) For those that can't open the video, I'm trying to run this brownie…
3
votes
2 answers

Error when trying to deploy standard OpenZeppelin ERC777 contract to ganache-cli using the brownie framework

I am familiarizing myself with smart contract development using the brownie framework and solidity. To start of I was using the brownie console to deploy some standard OpenZeppelin token contracts. I did this by copying the code right from their…
Andre
  • 41
  • 1
3
votes
0 answers

What is meant by a ValueError: Invalid NPM block in import when trying to run brownie compile?

I am trying to test and replicate in my local machine the FundMe.sol // SPDX-License-Identifier: MIT pragma solidity ^0.6.6 import "@chainlink/contracts/src/v0.6/interfaces/AggregatorV3Interface.sol"; import…
3
votes
3 answers

Solidity importing problem on VSCode (WSL2) and Brownie

I'm working with a Solidity using Brownie Framework running on WSL2 Ubuntu 20.04 on Windows 10 host machine. And I have to import chainlink dependecies to my project, so I have the following importors import…
Cromewar
  • 155
  • 9
2
votes
1 answer

When Installing brownie on Mac I get this error

I tried to install brownie and I'm getting this error(I'm watching the code academy blockchain, solidity tutorial). I feel like after trying all possibilities I've reached dead end from my side. Please help cause I need to move forward with the…
2
votes
1 answer

RPCRequestError while depositing WETH on aave v2 lending pool

while I am trying to use deposit() function from Aave v2 lending pool on goerli testnet, to deposit WETH token to the lending pool, the transaction is getting reverted and the error is following: RPCRequestError: Accessing…
2
votes
1 answer

Goerli ValueError: Gas estimation failed: 'execution reverted'

I'm trying to deploy an NFT about Harry Potter following this tutorial: https://www.youtube.com/watch?v=p36tXHX1JD8&list=PLzmffB-8Vx5Twi0x5cRRdzyixrkJtaftJ&index=9&t=3s. But when I run create_collectible.py I have an error: ValueError: Gas…
2
votes
0 answers

GCP VM startup script cannot install brownie

I am trying to install brownie on a GCP VM instance running ubuntu 18.04 LTS minimal. My startup script is the following: apt-get update -y && apt-get upgrade -y && apt-get install python3-pip -y && apt-get install nodejs npm -y && pip3 install…
2
votes
0 answers

How to get decode raw text stored in ethereum blockchain using contract

contract Simplestorage { string data; function store(string memory _data) public { data = _data; } function retrieve() public view returns (string memory) { return data; } } For the store function i given input…
2
votes
2 answers

How to resolve this UnicodeEncodeError while installing eth-brownie on Windows10 with pipx?

I tried to install eth-brownie on a Windows 10 PC running anaconda python. Python version is 3.9x I followed the instructions here; https://eth-brownie.readthedocs.io/en/stable/install.html I ran the command below; $ pipx install eth-brownie I…
user3848207
  • 3,737
  • 17
  • 59
  • 104
2
votes
1 answer

pipx install eth-brownie issue

Trying to install eth-brownie with pipx as recommended on Windows through powershell terminal in Visual Studio Code. Tried reinstalling pip and pipx. No problems installing eth-brownie through pip, but need it done through pipx. Below is the error…
1
2
3
15 16