在运行脚本时,我将遵循Patrick的坚实教程:
brownie run scripts/1_deploy_token.py --network rinkeby我知道这个错误:
INFO: Could not find files for the given pattern(s).
Brownie v1.16.4 - Python development framework for Ethereum
Python-dotenv could not parse statement starting at line 1
Python-dotenv could not parse statement starting at line 2
Python-dotenv could not parse statement starting at line 4
Python-dotenv could not parse statement starting at line 5
Python-dotenv could not parse statement starting at line 7
Python-dotenv could not parse statement starting at line 8
Python-dotenv could not parse statement starting at line 9
Python-dotenv could not parse statement starting at line 1
Python-dotenv could not parse statement starting at line 2
Python-dotenv could not parse statement starting at line 4
Python-dotenv could not parse statement starting at line 5
Python-dotenv could not parse statement starting at line 7
Python-dotenv could not parse statement starting at line 8
Python-dotenv could not parse statement starting at line 9
Erc20TokenProject is the active project.
Running 'scripts\1_deploy_token.py::main'...
File "C:\Users\Dev, line line, in in
return_value, frame = run(
File "C:\Users\Dev, line line, in in
return_value = f_locals[method_name](*args, **kwargs)
File ".\scripts\1_deploy_token.py", line 10, in main
our_token = OurToken.deploy(initial_supply, {"from": account})
File "C:\Users\Dev, line line, in in
return tx["from"].deploy(
File "C:\Users\Dev, line line, in in
receipt, exc = self._make_transaction(
File "C:\Users\Dev, line line, in in
gas_price, gas_strategy, gas_iter = self._gas_price(gas_price)
File "C:\Users\Dev, line line, in in
return web3.eth.generate_gas_price(), None, None
File "C:\Users\Dev, line line, in in
return self._generate_gas_price(transaction_params)
File "C:\Users\Dev, line line, in in
return self.gasPriceStrategy(self.web3, transaction_params)
File "C:\Users\Dev, line line, in in
return web3.manager.request_blocking(RPC.eth_gasPrice, [])
File "C:\Users\Dev, line line, in in
response = self._make_request(method, params)
File "C:\Users\Dev, line line, in in
return request_func(method, params)
File "cytoolz\functoolz.pyx", line 250, in cytoolz.functoolz.curry.__call__
File "C:\Users\Dev, line line, in in
response = make_request(method, params)
File "C:\Users\Dev, line line, in in
return make_request(method, params)
File "cytoolz\functoolz.pyx", line 250, in cytoolz.functoolz.curry.__call__
File "C:\Users\Dev, line line, in in
response = make_request(method, params)
File "C:\Users\Dev, line line, in in
response = make_request(method, params)
File "cytoolz\functoolz.pyx", line 250, in cytoolz.functoolz.curry.__call__
File "C:\Users\Dev, line line, in in
response = make_request(method, params)
File "cytoolz\functoolz.pyx", line 250, in cytoolz.functoolz.curry.__call__
File "C:\Users\Dev, line line, in in
response = make_request(method, params)
File "cytoolz\functoolz.pyx", line 250, in cytoolz.functoolz.curry.__call__
File "C:\Users\Dev, line line, in in
response = make_request(method, params)
File "C:\Users\Dev, line line, in in
return make_request(method, params)
File "C:\Users\Dev, line line, in in
return make_request(method, params)
File "C:\Users\Dev, line line, in in
raw_response = make_post_request(
File "C:\Users\Dev, line line, in in
response.raise_for_status()
File "C:\Users\Dev, line line, in in
raise HTTPError(http_error_msg, response=self)
HTTPError: 401 Client Error: Unauthorized for url: https://rinkeby.infura.io/v3/$WEB3_INFURA_PROJECT_ID我从上面的url中编辑了愤怒的id,但是在错误中显示在url中的id与我的.env文件中的id不同。该怎么办呢。
发布于 2022-07-06 05:10:10
在您的WEB3_INFURA_PROJECT_ID文件中提供的值( .env )似乎有问题,请检查
https://ethereum.stackexchange.com/questions/131205
复制相似问题