When I'm using GasNowStrategy("fast") in my contract deployment I get an error:
from brownie.network.gas.strategies import GasNowStrategy
def main():
dev = accounts.add(config["wallets"]["from_key"])
print(dev)
print(network.show_active())
deployed_contract = Bbum.deploy(
{"from": dev, "gas_price": GasNowStrategy("fast")}
)
What is the problem here?
the error:
File "C:\Users\Omer\AppData\Local\Programs\Python\Python310\lib\site-packages\eth_brownie-1.17.2-py3.10.egg\brownie\_cli\run.py", line 51, in main
return_value, frame = run(
File "C:\Users\Omer\AppData\Local\Programs\Python\Python310\lib\site-packages\eth_brownie-1.17.2-py3.10.egg\brownie\project\scripts.py", line 103, in run
return_value = f_locals[method_name](*args, **kwargs)
File ".\scripts\deployERC.py", line 9, in main
deployed_contract = Bbum.deploy({"from": dev, "gas_price": GasNowStrategy("fast")})
File "C:\Users\Omer\AppData\Local\Programs\Python\Python310\lib\site-packages\eth_brownie-1.17.2-py3.10.egg\brownie\network\contract.py", line 531, in __call__
return tx["from"].deploy(
File "C:\Users\Omer\AppData\Local\Programs\Python\Python310\lib\site-packages\eth_brownie-1.17.2-py3.10.egg\brownie\network\account.py", line 510, in deploy
receipt, exc = self._make_transaction(
File "C:\Users\Omer\AppData\Local\Programs\Python\Python310\lib\site-packages\eth_brownie-1.17.2-py3.10.egg\brownie\network\account.py", line 727, in _make_transaction
raise VirtualMachineError(e) from None
File "C:\Users\Omer\AppData\Local\Programs\Python\Python310\lib\site-packages\eth_brownie-1.17.2-py3.10.egg\brownie\exceptions.py", line 93, in __init__
raise ValueError(str(exc)) from None
ValueError: Expecting value: line 1 column 1 (char 0)