Help on declaring a cairo smart contract using protostar #2199
Unanswered
Moses-main
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have been getting some error when i want to declare my cairo smart contract before deploying.
The command below is what I use but i do get error after. what can be the cause ?
Command for building contract
protostar declare --network testnet --account-address 0x03...f84 --max-fee auto --private-key-path ./.env hello_starknet
Then the error i am getting is below here:
Traceback (most recent call last): File "aiohttp/connector.py", line 980, in _wrap_create_connection File "asyncio/base_events.py", line 1090, in create_connection File "asyncio/base_events.py", line 1120, in _create_connection_transport File "asyncio/selector_events.py", line 854, in _read_ready__data_received ConnectionResetError: [Errno 104] Connection reset by peer
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "binary_entrypoint.py", line 85, in <module> File "binary_entrypoint.py", line 24, in init File "protostar/start.py", line 21, in main File "protostar/start.py", line 47, in run_protostar File "protostar/start.py", line 42, in run_protostar File "asyncio/runners.py", line 44, in run File "asyncio/base_events.py", line 647, in run_until_complete File "protostar/protostar_cli.py", line 80, in run File "protostar/protostar_cli.py", line 117, in _run_command_from_args File "protostar/argument_parser/cli_app.py", line 25, in run File "protostar/commands/cairo1_commands/declare_command.py", line 117, in run File "protostar/commands/cairo1_commands/declare_command.py", line 152, in declare File "protostar/starknet_gateway/gateway_facade.py", line 249, in declare_cairo1 File "starknet_py/net/account/account.py", line 268, in sign_declare_v2_transaction File "starknet_py/net/account/account.py", line 302, in _make_declare_v2_transaction File "starknet_py/net/account/account.py", line 196, in get_nonce File "starknet_py/net/gateway_client.py", line 432, in get_contract_nonce File "starknet_py/net/http_client.py", line 63, in call File "starknet_py/net/http_client.py", line 37, in request File "starknet_py/net/http_client.py", line 48, in _make_request File "aiohttp/client.py", line 1141, in __aenter__ File "aiohttp/client.py", line 536, in _request File "aiohttp/connector.py", line 540, in connect File "aiohttp/connector.py", line 901, in _create_connection File "aiohttp/connector.py", line 1206, in _create_direct_connection File "aiohttp/connector.py", line 1175, in _create_direct_connection File "aiohttp/connector.py", line 988, in _wrap_create_connection aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host alpha4.starknet.io:443 ssl:default [Connection reset by peer] [50149] Failed to execute script 'binary_entrypoint' due to unhandled exception!
what can be the way out here please ?
Beta Was this translation helpful? Give feedback.
All reactions