Questions tagged [brownie]

236 questions
0
votes
2 answers

Getting compiler error when trying to verify a contract importing from @uniswap/v3-periphery

I'm trying to perform a simple Swap from DAI to WETH with Uniswap in my own SmartContract on the Kovan Testnet. Unfortunately my transaction keeps getting reverted even after setting the gas limit manually. I also discovered that I can not verify…
MjCage
  • 3
  • 1
0
votes
1 answer

Smartcontract/Lottery : Errors during execution of running scripts

While running the deploy_lottery.py I am getting the following error: The transactions executes until def start_lottery(). Once it reaches the def enter_lottery the programs stops execution with the following error: 1."sender doesn't have enough…
0
votes
0 answers

We3.py Install Error: Running setup.py install for bitarray ... error ERROR: Command errored out with exit status 1:

I am using python 3.9.7 PS C:\Program Files\Python39> pip install web3 ... This is the part where it's in red error message: Running setup.py install for bitarray ... error ERROR: Command errored out with exit status 1: command: 'C:\Program…
0
votes
5 answers

ImportError: cannot import name 'SimpleCollectible' from 'brownie'

Implementing flask with brownie, to automate the the code create_collectible when hitting a button. The import simple collectible is from this…
Fran ETH
  • 23
  • 1
  • 6
0
votes
2 answers

Imports for "@chainlink" and "@openzeppelinn" are broken

Whenever I try to do an import like the two demonstrated below, they are not recognized. I am using VSCode. Yes I have tried installing and uninstalling many times. If anybody knows why that would be EPIC. Thanks. import…
jjreedv
  • 71
  • 2
  • 7
0
votes
2 answers

Brownie Errors when attempting to compile

When I type "brownie compile" it doesn't work and I get this error. Anybody know why? File "c:\users\sircr\appdata\local\programs\python\python39\lib\site-packages\brownie\_cli\__main__.py", line 64, in main …
jjreedv
  • 71
  • 2
  • 7
0
votes
1 answer

Brownie - Constructor Sequence has incorrect length, expected 1 but got 0

I am trying to deploy a contract on Rinkeby by running brownie run scripts/deploy.py --network rinkeby but I get following error: Constructor Sequence has incorrect length, expected 1 but got 0 I think the problem is that I do NOT specify the…
Magofoco
  • 5,098
  • 6
  • 35
  • 77
-1
votes
2 answers

Python 2 Syntax Error Encountered in Python 3 Environment with ape Tool

I'm encountering an issue with the eth-ape tool in Python 3.9.17. Hello, I am currently facing a problem with the eth-ape tool in Python 3.9.17. Although I have installed it successfully, I am encountering a syntax error related to the 'print'…
vookami
  • 1
  • 1
-1
votes
1 answer

python exec() raises SyntaxError exception when passing an object inside the string argument

So I am currently trying to deploy my smart contract using a brownie script as shown in the code below: from brownie import accounts, network import sys sys.path.append("../") import globalVars def main(): import_str = "from {0} import…
mnsdali
  • 3
  • 2
-1
votes
1 answer

Installing OpenZeppelin Dependencies in Brownie

In my brownie project, I want to install OpenZepplin dependencies. I have included the dependency in the config file, but Brownie is not automatically installing them. What am I doing wrong? enter image description here I tried hitting brownie…
-1
votes
1 answer

How to reference LINK token on (forked) development network without "invalid opcode"?

I like to run a number of local tests. Everything works well on rinkeby and other test chains. However, the local development chain disagrees with my configuration. When I run a forked development network: brownie console --network mainnet-fork The…
RndmSymbl
  • 511
  • 6
  • 24
-1
votes
1 answer

Brownie installation

hp@DESKTOP-QUTE621 MINGW64 \~/demos/nft-demo $ brownie run scripts/deploy_and_create.py --network rinkeby INFO: Could not find files for the given pattern(s). Brownie v1.18.1 - Python development framework for Ethereum NftDemoProject is the active…
-1
votes
1 answer

brownie UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 2127: character maps to

I tried to compile my contract using brownie and got the following error: File "C:\Users\muvis\AppData\Local\Programs\Python\Python310\lib\encodings\cp1252.py", line 23, in decode return…
-1
votes
1 answer

"transaction underpriced" error python using brownie deploying contract

I've deployed that contract to rinkeby, and now I am trying to deploy to mumbai with no success. from brownie import Bbum, accounts, config, network def main(): dev = accounts.add(config["wallets"]["from_key"]) print(dev) …
OmerS
  • 153
  • 2
  • 9
-1
votes
3 answers

How to create an account on Brownie

I am looking to create accounts on Brownie for deploying contracts but I am not sure how to do this. I have looked online how to do this and I havent found it. I am running python 3.7 and have brownie installed and working as intended. I have also…
1 2 3
15
16