Replies: 1 comment
-
Hello @frank0532
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Code is as below:

Get Error:
Brownie v1.19.1 - Python development framework for Ethereum
========================================================================= test session starts ==========================================================================
platform win32 -- Python 3.9.6, pytest-6.2.5, py-1.11.0, pluggy-1.0.0
rootdir: D:\syn\web3\brownie_fund_me
plugins: eth-brownie-1.19.1, hypothesis-6.27.3, forked-1.4.0, xdist-1.34.0, web3-5.30.0
collected 2 items
Attached to local RPC client listening at '127.0.0.1:8545'...
tests\test_fund_me.py Fs [100%]
=============================================================================== FAILURES ===============================================================================
______________________________________________________________________ test_can_fund_and_withdraw ______________________________________________________________________
tests\test_fund_me.py:11:
C:\Users\MiC.local\pipx\venvs\eth-brownie\lib\site-packages\brownie\network\multicall.py:115: in _proxy_call
result = ContractCall.call(*args, **kwargs) # type: ignore
C:\Users\MiC.local\pipx\venvs\eth-brownie\lib\site-packages\brownie\network\contract.py:1902: in call
return self.call(*args, block_identifier=block_identifier, override=override)
self = <ContractCall 'getEntranceFee()'>, block_identifier = None, override = None, args = ()
tx = {'allow_revert': None, 'data': '0x09bc33a7', 'from': '0x58a78Af7b613BD286328759A2d189e8884e4fA1C', 'gas': None, ...}
E brownie.exceptions.VirtualMachineError: revert
C:\Users\MiC.local\pipx\venvs\eth-brownie\lib\site-packages\brownie\network\contract.py:1693: VirtualMachineError
------------------------------------------------------------------------- Captured stdout call -------------------------------------------------------------------------
mainnet-fork-dev
Contract deployed to 0x918Cf92680C6995aAfEc4e3E0AA6036b1540445D
=========================================================================== warnings summary ===========================================================================
C:\Users\MiC.local\pipx\venvs\eth-brownie\lib\site-packages\brownie\network\main.py:44
C:\Users\MiC.local\pipx\venvs\eth-brownie\lib\site-packages\brownie\network\main.py:44: BrownieEnvironmentWarning: Development network has a block height of 70
warnings.warn(
tests/test_fund_me.py::test_can_fund_and_withdraw
tests/test_fund_me.py::test_can_fund_and_withdraw
C:\Users\MiC.local\pipx\venvs\eth-brownie\lib\site-packages\eth_abi\codec.py:87: DeprecationWarning: abi.encode_abi() and abi.encode_abi_packed() are deprecated and will be removed in version 4.0.0 in favor of abi.encode() and abi.encode_packed(), respectively
warnings.warn(
-- Docs: https://docs.pytest.org/en/stable/warnings.html
======================================================================= short test summary info ========================================================================
FAILED tests/test_fund_me.py::test_can_fund_and_withdraw - brownie.exceptions.VirtualMachineError: revert
=============================================================== 1 failed, 1 skipped, 3 warnings in 2.20s ===============================================================
Beta Was this translation helpful? Give feedback.
All reactions