Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    JacoboLansac
    @JacoboLansac
    Has anybody had issues with the coverage report? It works great in some of my projects, but in one of them it the gui is unable to load the coverage report.
    Is there a limit on how large a contract can be?
    Thanks in advance
    image.png
    wren
    @DrawnWren
    Hi, I am running brownie test --network anvil-forked but networks.show_active() is returning None because web3.provider in network is None .... is there a way to debug this? it's hard for me to understand where provider is even being set/how I can ensure it is set
    Jbusma
    @Jbusma
    Does anyone know why my terminal just sits there after succesfully deploying to rinkeby?
    I've left it alone for hours at a time without it exiting
    Jbusma
    @Jbusma
    image.png
    Abdellah Ameur
    @AbdellahAmeur10_twitter
    Gas estimation failed: 'The execution failed due to an exception.'. This transaction will likely revert. If you wish to broadcast, you must set the gas limit manually.
    Screenshot 2022-06-21 at 18.33.35.png
    can someone help me please
    João Gonçalo Morais
    @JoaoMorais96

    Hi everybody, I have a problem, hoping you guys can help.
    I can no longer import contracts to use in Brownie. I havea compiled contract called "Caller, but when I do:

    from brownie import Box

    it says: "Caller" is not accessed

    Swapnil Raj
    @swapnilraj
    Hey guys, I work on https://github.com/NethermindEth/warp and our team is looking to integrating warp and starknet support into brownie. Are there any existing plans for integrating Starknet or L2's in general?
    Bhagat Singh
    @BhagatS88835580_twitter
    image.png
    I am using brownie and was doing a project but is getting this error please can anyone let me know what is the issue. I am using python and brownie.
    Bhagat Singh
    @BhagatS88835580_twitter
    image.png
    can anyone let me know why this is happening I am new to brownie and python
    dylanusdt
    @dylanusdt:matrix.org
    [m]
    I'll help 10 individuals how to earn $20,000 in just 72 hours from the crypto/forex market. But you will pay me 10% commission when you receive your profit. if interested send me a direct message via Whatapp by asking me HOW for more details on how to get started
    +1 (570) 801-0862
    ethanj.eth
    @eeethanj
    hi
    sam445uutg
    @sam445uutg
    raise ValueError(f"'{value}' is not a valid ETH address") from None
    how to resolve this issues can
    any tell me plz
    Deamonk1
    @Deamonk1
    Hello please help how do i solve this error when i try run brownie run deploy_lottery it returns File "./scripts/deploy_lottery.py", line 14, in deploy_lottery
    lottery = Lottery.deploy(
    File "brownie/network/contract.py", line 544, in call
    raise AttributeError(
    AttributeError: Final argument must be a dict of transaction parameters that includes a from field specifying the address to deploy from

    here's my deploy_lottery script

    from scripts.helpful_script import (
    LOCAL_BLOCKCHAIN_ENVIRONMENT,
    get_account,
    get_contract,
    fund_with_link,
    )
    from brownie import Lottery, accounts, network, config
    import time
    import os

    def deploy_lottery():
    account = get_account()
    lottery = Lottery.deploy(
    get_contract("eth_usd_price_feed").address,
    get_contract("vrf_Coordinator").address,
    get_contract("link_token").address,
    config["networks"][network.show_active()]["fee"],
    config["networks"][network.show_active()]["keyhash"],
    {"from": account},
    publish_source=config["networks"][network.show_active()].get("verify", False),
    )
    print("Deployed lottery!")
    return lottery

    def start_lottery():
    account = get_account()
    lottery = Lottery[-1]
    starting_tx = lottery.startLottery({"from": account})
    starting_tx.wait(1)
    print("The lottery is started!")

    def enter_lottery():
    account = get_account()
    lottery = Lottery[-1]
    value = lottery.getEntranceFee() + 100000000
    tx = lottery.enter({"from": account, "value": value})
    tx.wait(1)
    print("You entered the lottery!")

    def end_lottery():
    account = get_account()
    lottery = Lottery[-1]

    # fund the contract
    # then end the lottery
    tx = fund_with_link(lottery.address)
    tx.wait(1)
    ending_transaction = lottery.endLottery({"from": account})
    ending_transaction.wait(1)
    time.sleep(180)
    print(f"{lottery.recentWinner()} is the new winner!")

    def main():
    deploy_lottery()
    start_lottery()
    enter_lottery()
    end_lottery()

    Ceazor
    @Ceazor7_twitter

    Hey guys.. im having an issue with my FTMSCAN_TOKEN.

    An API token is required to verify contract source code. Visit https://ftmscan.com/ to obtain a token, and then store it as the environment variable $FTMSCAN_TOKEN

    i have already put

    ? export FTMSCAN_TOKEN=xxxxxxxx

    which i got from https://ftmscan.com/myapikey

    Is there anyway to verify that my key has been added correctly?

    Ceazor
    @Ceazor7_twitter
    image.png
    manu sharma
    @manusharma1903_twitter

    HI guys !
    I'm unable to import accounts from brownie via the command(from brownie import accounts).

    I've already installed Brownie in the required way, but still, I'm unable to import accounts from brownie via the code(from brownie import accounts). It is correct till (from brownie..), but then not showing accounts option when I write import accounts

    Help me guys..
    I'm deeply stuck
    image.png
    Hagen Hoferichter
    @h4gen
    Hi everybody! What do I do if I need to feed an int256 as argument to a contract from python? I actually need all the bits to pass a very big number
    João Gonçalo Morais
    @JoaoMorais96
    Hi guys, I recently changed computer and the contracts that compiled in the preivous one, now don't anymore and give this error:
    TypeError: Data locations of parameters have to be the same when overriding non-external functions, but they differ.
    --> C:/Users/user/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.5.0/contracts/governance/Governor.sol:101:5:
    |
    101 | function hashProposal(
    | ^ (Relevant source part starts here and spans across multiple lines).
    Note: Overridden function is here:
    --> C:/Users/user/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.5.0/contracts/governance/IGovernor.sol:92:5:
    |
    92 | function hashProposal(
    | ^ (Relevant source part starts here and spans across multiple lines).
    Can anybody help?
    João Gonçalo Morais
    @JoaoMorais96
    I get this error before: WARNING: Unable to compile OpenZeppelin/openzeppelin-contracts-upgradeable@4.5.0 due to a CompilerError - you may still be able to import sources from the package, but will be unable to load the package directly.
    Anasjn97
    @Anasjn97
    Hello! So I have a bit of an issue. I am writing a contract and I need to input a data structure signed according to EIP-712. I've spent a lot of time on this, but I figured out that whenever I call the function using the brownie Contract container , the hash that I obtain is wrong and the signature I get is not valid. However, when I deploy the contract in the forked chain, and I use web3.contract to call it, the hash and signature are right, any idea what might be causing this ?
    BcDev
    @bcdevwork
    Hi, please tell me when the maintainers will have the opportunity to watch PR eth-brownie/brownie#1551
    there has been no activity for 2 months now =(
    Anasjn97
    @Anasjn97

    Hello! So I have a bit of an issue. I am writing a contract and I need to input a data structure signed according to EIP-712. I've spent a lot of time on this, but I figured out that whenever I call the function using the brownie Contract container , the hash that I obtain is wrong and the signature I get is not valid. However, when I deploy the contract in the forked chain, and I use web3.contract to call it, the hash and signature are right, any idea what might be causing this ?

    Anyone able to help me with this?

    Sandeep
    @Sandeep33016294_twitter
    Hello! i wanted to know can i generate a random account on polygon testnet eachtime anyone signups on my dApp. I want to do it from the script not command line.
    VictorPerez06
    @VictorPerez06
    Capture d’écran 2022-07-23 à 19.13.38.png
    2 replies
    Do anybody already had encontered this error installing eth-brownie with pip ?
    Capture d’écran 2022-07-23 à 19.15.09.png
    1 reply
    have this problem using pipx
    sach.eth
    @Hippy___Trippy_twitter
    got this error while run scripts
    1 reply
    image.png
    Naresh Muthumula
    @muthumula19
    Hi, when i run .py file every time my contracts are deploying but i don't want to deploy, i am using Ganache and Brownie, can some one some code example i followed this blog https://www.codeforests.com/2022/01/18/python-interact-with-smart-contract/ but it is not worked
    paw^2
    @invader-tak
    hyp.JPG
    Im having issues running the most basic hypothesis test in brownie
    keep getting a FAILED tests/hyp.py - IndexError: list index out of range error on the imported accounts input in given
    Emmanuel Onwuka
    @Genius2021
    hello guys. Please I need your help. I deployed a contract on 0x94B0430C79e396a28FBaA3a6539d87efdFDb8A17. It cost me around $12. Now, I want to interact with thee flashloan. and even with $85, it still says "...ValueError: insufficient funds for gas * price + value". I am using brownie. Please beautiful people, what do I do?
    Emmanuel Onwuka
    @Genius2021
    The $85 is approximately 0.0491 ETH...Is it not enough?
    Oren
    @orenyomtov
    Hey, is it possible to use a custom web3.py middleware with brownie?
    2 replies
    Emmanuel Onwuka
    @Genius2021
    Hey guys, I have a million dollar idea. I think this group should be shut down forever. I mean, why is it called a community when people don't want to assist others with answers? Since yesterday, no one has answered my question. I really don't need anyone's assistance anymore. I'll figure it out myself.
    toastypump
    @toastypump
    Hi, anyone here?
    i keep getting this error when testing to see if Brownie is installed