Category "brownie"

Gas estimation failed: 'invalid opcode: INVALID'. This transaction will likely revert. If you wish to broadcast, you must set the gas limit manually

I adapted the code from this tutorial for my needs. It works fine at rinkeby network, but I am getting an error when I try to run it on Mumbai network. Advanced

problem in Downloading brownie software tried pip and pipx method not work

File "C:\Users\ASHU\AppData\Roaming\Python\Python310\site-packages\pipx\main.py", line 779, in cli return run_pipx_command(parsed_pipx_args) File "C:\Users\ASHU

contract deployment using brownie and ganache

I want to deploy a contract using brownie. after inserting the brownie run scripts/deploy.py in the terminal of Pycharm, the following message appeared and noth

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.readthed

Import "brownie" could not be resolved in Pylance

Error is: Import "brownie" could not be resolvedPylance I know there are other SO posts that refer to this, but it seems most of them are talking about booting

Issue Brownie setup, not sure if ganache installed properly - chainlink hackathon

I am new to this space and having an issue getting brownie to run my first deploy script. I am learning through the Chainlink Hackathon and following the browni

'export' in VS code show problem statement "Declaration or statement expected." and cannot find name 'WEB3_INFURA_PROJECT_ID' and 'PRIVATE_KEY'

I am trying to create a ERC20 standard token using VS code by following a Youtube video https://www.youtube.com/watch?v=8rpir_ZSK1g . Until I reached the .env f

AttributeError: 'NoneType' object has no attribute '_with_attr' Brownie

I was following the freecodecamp smart contract course, i was in lesson 6 brownie Fund me/ when i was setting up my test it showed me the next error: platform w

brownie AttributeError: 'NoneType' object has no attribute 'getEntranceFee'

Macbook Pro : Monterey Intel Core i7 Brownie v1.17.2 I am learning solidity according to reference(https://www.youtube.com/watch?v=M576WGiDBdQ&t=25510s). Wh

python sintax problem for solidity compilator

I have problem connected to python. I want to compile solidity files using python. But getting error. import json from solcx import compile_standard, inst

Brownie downloads solc every time I run compile

I'm using Visual Studio Code and every time I run brownie compile I get this which takes a good while (and also I can't compile without internet connection): I

Use external packages in eth-brownie?

I am trying open a ERC721 smart contract in Brownie on VSCode and loop through the token ids and set the URI of each in each iteration. I execute the script wit

sign and verify message with solidity and python

I am trying to perform a certain action say like selling a token only when the message sent to a contract is signed by the contract owner. I knew how I would do

v0.8 AggregatorV3Interface.sol , its available in @chainlink/contracts?

I get a error when i change the version to 0.8 , but works fine with 0.6, how i see the most recent version? , i tried downloaded from npm install @chainlink/co

Visual Code Studio, File Import Callback not Supported - File Source not Found

While trying to troubleshoot another issue with my project, I must've broken something along the way, but I have no idea how to fix this. These are my import st

Trying to run a Brownie Dapp in Docker

I'm trying to run my brownie dapp in a docker container, but i always have the same error and can't seem to fix it: FileNotFoundError: [Errno 2] No such file or

eth-brownie: Deployed contract returning as transaction receipt instead of the contract itself. I cannot grab the contract from the address or alias

I deployed a token on the BSC network transaction it saved the object as a transaction receipt it is not returning the contract object, as it shows in the docs.

File not exist Solc error when trying to import data feed into my contract

I have tried changing different versions of solc, solidity, and chainlink contracts but it doesn't work. Error: contracts/Lottery.sol:4:1: ParserError: Sourc

TransactionError when using Brownie on Optimism - Tx dropped without known replacement

I have a Python script using Brownie that occasionally triggers a swap on Uniswap by sending a transaction to Optimism Network. It worked well for a few days (d

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