I am new to Cairo and StarkNet. I am running a simple contract given in the following link of Cairo docs. I am following all the steps. After compilation when I am trying to declare the contract it is giving the following error.
Error Got BadRequest while trying to access https://alpha4.starknet.io/feeder_gateway/simulate_transaction?blockNumber=pending. Status code: 500; text: {"code": "StarknetErrorCode.ENTRY_POINT_NOT_FOUND_IN_CONTRACT", "message": "Entry point 0x289da278a8dc833409cabfdad1581e8e7d40e42dcaed693fa4008dcdb4963b3 not found in contract with class hash 0x6a2c4510a0eb1bbcb75b66b23b9f3897c43644b1c86c2547cbe708f97c8f18b."}. Traceback (most recent call last): File "/home/chainz/.local/lib/python3.10/site-packages/services/external_api/client.py", line 117, in _send_request raise BadRequest(status_code=response.status, text=text) services.external_api.client.BadRequest: HTTP error ocurred. Status: 500. Text: {"code": "StarknetErrorCode.ENTRY_POINT_NOT_FOUND_IN_CONTRACT", "message": "Entry point 0x289da278a8dc833409cabfdad1581e8e7d40e42dcaed693fa4008dcdb4963b3 not found in contract with class hash 0x6a2c4510a0eb1bbcb75b66b23b9f3897c43644b1c86c2547cbe708f97c8f18b."} Error: BadRequest: HTTP error ocurred. Status: 500. Text: {"code": "StarknetErrorCode.ENTRY_POINT_NOT_FOUND_IN_CONTRACT", "message": "Entry point 0x289da278a8dc833409cabfdad1581e8e7d40e42dcaed693fa4008dcdb4963b3 not found in contract with class hash 0x6a2c4510a0eb1bbcb75b66b23b9f3897c43644b1c86c2547cbe708f97c8f18b."}
The link of cairo docs https://www.cairo-lang.org/docs/hello_starknet/intro.html#your-first-contract
Your help is appreciated. Thanks.