Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    hero5512
    @hero5512
    image.png
    image.png

    tx3 = strategy.harvest({"from": strategist})
    Transaction sent: 0xe6d8ca85f6284732cd52b45f13b9a0e9b40397cfd61270599520a91751b19687
    Gas price: 0.0 gwei Gas limit: 12000000 Nonce: 25
    DoubleLevCompStrategy.harvest confirmed (SafeMath: subtraction overflow) - Block: 13107681 Gas used: 2002222 (16.69%)

    tx3.events
    File "<console>", line 1, in <module>
    File "brownie/network/transaction.py", line 48, in wrapper
    raise exc
    File "brownie/network/transaction.py", line 44, in wrapper
    return fn(self)
    File "brownie/network/transaction.py", line 212, in events
    self._get_trace()
    File "brownie/network/transaction.py", line 596, in _get_trace
    raise RPCRequestError(msg) from None
    RPCRequestError: Encountered a ConnectionError while requesting debug_traceTransaction. The local RPC client has likely crashed.

    when I invoke tx3.events, I encounter the problem. anybody knows why?
    The ganache-cli is forked from eth mainnet
    hellomoon54321
    @hellomoon54321_twitter
    Hey team, is there a way to use the web3 sendTransaction function or equivalent in brownie? I have a transaction built as I'm integrating with Paraswap but can't figure out how to use it. Thanks so much in advance but I couldn't find any answer to this on google
    Reuben Joslin Coutinho
    @reuben21
    Hi Guys Im new here
    And I wanted to know if there is some way to integrate brownie with Rest framework like Flask or Django
    dunks411
    @duncan4123
    Hey all, I am having trouble installing brownie on windows :(
    Well actually WSL ubuntu
    YetiBridge
    @YetiBridge
    Is there a way to call constructors?
    constructor(address _priceFeed) public {
        priceFeed = AggregatorV3Interface(_priceFeed);
        owner = msg.sender;
    }
    I need _priceFeed to = 0x8A753747A1Fa494EC906cE90E9f37563A8AF630e else I get this error
    Running 'scripts/deploy.py::main'... File "brownie/_cli/run.py", line 49, in main return_value, frame = run( File "brownie/project/scripts.py", line 103, in run return_value = f_locals[method_name](*args, **kwargs) File "./scripts/deploy.py", line 12, in main deploy_fund_me() File "./scripts/deploy.py", line 7, in deploy_fund_me fund_me = FundMe.deploy({"from": account}) File "brownie/network/contract.py", line 600, in __call__ return tx["from"].deploy( File "brownie/network/account.py", line 507, in deploy data = contract.deploy.encode_input(*args) File "brownie/network/contract.py", line 629, in encode_input data = format_input(self.abi, args) File "brownie/convert/normalize.py", line 20, in format_input raise type(e)(f"{abi['name']} {e}") from None ValueError: constructor Sequence has incorrect length, expected 1 but got 0
    Following PatrickAlphaC's Brownie tutorial
    Alexi
    @AlexiDoesCode
    Hey is there a way to fix my script when it gets stuck at "waiting for confirmation", even though its already confirmed, or when it says awaiting for transaction in the mempool? (FTM Network using their WSS node)
    Yash Shah
    @yashnaman
    Hey everyone,
    Is there an equivalent of callStatic in web3.py?
    https://docs.ethers.io/v5/api/contract/contract/#contract-callStatic
    Kevin Mai-Husan Chia
    @mhchia

    Hi all! Is there a simple way to test against several chains using brownie, without "switching" between networks?

    It seems to me that we can only spawn several ganache-clis and communicate with them using web3.py on our own.

    cryptorion
    @cryptorion:matrix.org
    [m]
    Hello everyone, I have an issue with running scripts in windows 10 brownie on Python...
    any help would be amazing.
    cryptorion
    @cryptorion:matrix.org
    [m]
    I found the solution to my issue, I moved my files to the C drive, and it worked just fine for me. seems like Brownie doesn't like "external drives"
    Merc0
    @merc-0
    Anyone know if there's a solution to the remapping issue on the VS Code solidity language extension? juanfranblanco/vscode-solidity#183
    Screen Shot 2021-09-17 at 12.08.48 PM.png
    lanChun
    @zlanchun
    hi
    image.png
    Anyone know this? when I Contract.from_explorer at Polygon-main network, I encountered this problem
    No PolygonScan API token set. You may experience issues with rate limiting. Visit https://polygonscan.com/register to obtain a token, and then store it as the environment variable $POLYGONSCAN_TOKEN
    zcor
    @zcor
    Screen Shot 2021-09-19 at 1.16.12 PM.png
    Friends -- big Brownie enthusiast. Have had some issues with publishing source for OpenZeppelin versions >= 4.0 ERC-721 tokens. The token deploys fine using HardHat or Remix (or if I flatten into a single Solidity file), but Brownie seems to have trouble locating the interfaces to publish the source. It doesn't have any issues when I try lowering Solidity/OpenZeppelin to version 3.0. Currently using the brownie package manager (brownie pm install OpenZeppelin/openzeppelin-contracts@4.3.0) -- Happy to share more details as needed helpful.
    File "brownie/_cli/run.py", line 49, in main return_value, frame = run( File "brownie/project/scripts.py", line 103, in run return_value = f_locals[method_name](*args, **kwargs) File "./scripts/brownie/deploy.py", line 15, in main deployed = ActionNFT.deploy( File "brownie/network/contract.py", line 599, in __call__ return tx["from"].deploy( File "brownie/network/account.py", line 555, in deploy contract.publish_source(deployed_contract, silent=silent) File "brownie/network/contract.py", line 409, in publish_source contract_info = self.get_verification_info() File "brownie/network/contract.py", line 315, in get_verification_info build_json = self._project._build.get(name) File "brownie/project/build.py", line 124, in get return self._interfaces[key]
    Jamiel Sheikh
    @jamiels
    Anyone see this type of exception [KeyError: 'OpenZeppelin/openzeppelin-contracts@4.3.2/Address'] when deploying a smart contract to Rinkeby and publish_source = True ? No issues if publish_source is False
    zcor
    @zcor
    Same issue I posted above ^^
    Todd Abraham
    @toddabraham
    Running into a VirtualMachineError: revert when trying to run a script. I seem unable to find any information that helps me understand this error and how to resolve it. Is anyone able to offer guidance?
    Jamiel Sheikh
    @jamiels
    @zcor Looks like its a recent problem with 4.3.x
    zcor
    @zcor
    I flattened the OZ libraries I needed into an import file, that solved it for the interim
    zcor
    @zcor
    It looks like it has something to do with how brownie stores interface files
    Jamiel Sheikh
    @jamiels
    I see. That's a messy solution but if it works hey. Hopefully the Brownie can resolve it. I love Brownie because it is clean and elegant.
    Prabhaav
    @prabhaav
    hi all, has anybody created a brownie-mix for working with Uniswap or any other DEX platforms (balancer, sushi, etc)?
    John Reed
    @jjreedv
    in my DEPLOY.py I'm writing "from brownie import FundMe" with my solidity file being "FundMe.sol" However apon deploying it says it cannot import FundMe
    curiousdweller
    @curiousdweller
    Is FundMe the name of the contract aswell?
    Dan Williams
    @deftOfCenter
    So, trying to send a transaction to a contract on polygon, I get an ExtraDataLengthError. I am using infura (have upgraded to include polygon), calls work, and I think I have the syntax right, but I am real new, so could be syntactical. Would love some help? transaction click_contract.getRewards({'from': accounts[0]})
    Dan Williams
    @deftOfCenter
    Anything above look off?
    Akash Senta
    @akashsenta13
    Attached to local RPC client listening at '127.0.0.1:8545'...
      File "brownie/_cli/run.py", line 49, in main
        return_value, frame = run(
      File "brownie/project/scripts.py", line 53, in run
        module = _import_from_path(script)
      File "brownie/project/scripts.py", line 149, in _import_from_path
        _import_cache[import_str] = importlib.import_module(import_str)
      File "/usr/local/Cellar/python@3.9/3.9.7/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
      File "<frozen, line line, in in
      File "<frozen, line line, in in
      File "<frozen, line line, in in
      File "<frozen, line line, in in
      File "<frozen, line line, in in
      File "<frozen, line line, in in
      File "<frozen, line line, in in
      File "<frozen, line line, in in
      File "<frozen, line line, in in
      File "<frozen, line line, in in
      File "<frozen, line line, in in
      File "<frozen, line line, in in
      File "<frozen, line line, in in
      File "<frozen, line line, in in
      File "<frozen, line line, in in
      File "<frozen, line line, in in
      File "<frozen, line line, in in
      File "<frozen, line line, in in
      File "<frozen, line line, in in
      File "<frozen, line line, in in
      File "<frozen, line line, in in
      File "<frozen, line line, in in
      File "<frozen, line line, in in
      File "<frozen, line line, in in
      File "<frozen, line line, in in
      File "<frozen, line line, in in
      File "<frozen, line line, in in
      File "<frozen, line line, in in
      File "<frozen, line line, in in
      File "<frozen, line line, in in
      File "<frozen, line line, in in
    ModuleNotFoundError: No module named 'xxxx'
    can anybody please help regarding this issue on Mac OS with python3.9
    Diego de Pablos
    @D-DePablos
    El De-dog-lo
    @fubuloubu
    Hey all! Please migrate conversation over to the Python EthDevs Discord, where there is a #brownie channel! link: https://discord.gg/jDZVkcTCqs
    Igor Morgado
    @igormorgado
    Hello! I've installed brownie using pipx, and using pylint installed in my system. Pylint isn' t able to find brownie libs for correct linting. In other hand, brownie command line work correctly. How to approach this?
    Of course I can say pylint to ignore this, but isn't the most elegant way. It should be better correctly initialize pylint to be able to find brownie installed packages.
    Since I never used the recommended pipx, I don' t know how to proceed.
    Igor Morgado
    @igormorgado
    Seems there is no simple solutions. As far I can tell from documentation. I will instead install brownie from pip. I think I will not need this isolated environment for brownie. I prefer to use my project environment in a single directory.