0

PS E:\lottery-smartcontract> brownie run scripts/deploy_lottery.py INFO: Could not find files for the given pattern(s). Brownie v1.16.4 - Python development framework for Ethereum

LotterySmartcontractProject is the active project.

Launching 'ganache-cli.cmd --accounts 10 --hardfork istanbul --gasLimit 12000000 --mnemonic brownie --port 8545'...

Running 'scripts\deploy_lottery.py::main'... File "C:\Users\scs\AppData\Local\Programs\Python\Python310\lib\site-packages\brownie_cli\run.py", line 49, in main return_value, frame = run( File "C:\Users\scs\AppData\Local\Programs\Python\Python310\lib\site-packages\brownie\project\scripts.py", line 103, in run return_value = f_locals[method_name](*args, **kwargs) File ".\scripts\deploy_lottery.py", line 23, in main deploy_lottery() File ".\scripts\deploy_lottery.py", line 10, in deploy_lottery get_contract("eth_usd_price_feed").address, File ".\scripts\helpful_scripts.py", line 61, in get_contract contract = contract_type[-1] File "C:\Users\scs\AppData\Local\Programs\Python\Python310\lib\site-packages\brownie\network\contract.py", line 160, in getitem
return self._contracts[i] IndexError: list index out of range Terminating local RPC client... enter image description here

3

1 Answer 1

1

Errors:

Pubish_source should be publish_source

For your contract to mock dictionary in your helpful_scripts, vrf_cooridinator should be vrf_coordinator

For your get_contract function, deploy_mocks needs open and closing brackets after it as it is a function. enter image description here

1
  • Thanks my problem is solved now
    – Kamal Shah
    Apr 16, 2022 at 17:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.