-
Hi everybody. I was trying to run fund_and_withdraw file and i received this error. This is the error:INFO: Could not find files for the given pattern(s).
Brownie v1.17.0 - Python development framework for Ethereum
BrownieFundMeProject is the active project.
Running '\Web development\My projects\Blockchain projects\brownie_fund_me\scripts\fund_and_withdraw.py::main'...
File "C:\Users\kazem\.local\pipx\venvs\eth-brownie\lib\site-packages\brownie\_cli\run.py", line 50, in main
return_value, frame = run(
File "C:\Users\kazem\.local\pipx\venvs\eth-brownie\lib\site-packages\brownie\project\scripts.py", line 103, in
run
return_value = f_locals[method_name](*args, **kwargs)
File "\Web, line projects\Blockchain, in line
fund()
File "\Web, line projects\Blockchain, in line
entrance_fee = fund_me.getEntranceFee()
File "C:\Users\kazem\.local\pipx\venvs\eth-brownie\lib\site-packages\brownie\network\multicall.py", line 115, in _proxy_call
result = ContractCall.__call__(*args, **kwargs) # type: ignore
File "C:\Users\kazem\.local\pipx\venvs\eth-brownie\lib\site-packages\brownie\network\contract.py", line 1658, in __call__
return self.call(*args, block_identifier=block_identifier)
File "C:\Users\kazem\.local\pipx\venvs\eth-brownie\lib\site-packages\brownie\network\contract.py", line 1454, in call
raise VirtualMachineError(e) from None
VirtualMachineError: revert```
|
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 4 replies
-
Could you provide more info please? plz show us the contract code and the python script code. |
Beta Was this translation helpful? Give feedback.
-
fund_and_withdraw.py
|
Beta Was this translation helpful? Give feedback.
-
helpful_scripts.py
|
Beta Was this translation helpful? Give feedback.
-
brownie-config.yaml
|
Beta Was this translation helpful? Give feedback.
-
.env
|
Beta Was this translation helpful? Give feedback.
-
This is a pic from my ide and its files |
Beta Was this translation helpful? Give feedback.
-
Thank you so much in advance. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
After reviewing my codes, I managed to solve the problem in the following way:
First, I deleted this folder
Then restart ganache and VSCode, then deleted the ganache-local i added at the first place and added the ganache-local again and it's working properly now.