starkware-libs / cairo-lang

Apache License 2.0
1.35k stars 262 forks source link

starknet-cli account deployment fails #163

Open bajpai244 opened 1 year ago

bajpai244 commented 1 year ago

I was following the starknet documentation.

I get the following error while simulation or deploying my account.

telegram-cloud-document-5-6298558638957005673

Link in the documentation.

Other Info:

starknet version: 0.11.1.1

obtained from starknet --version

bajpai244 commented 1 year ago

I digged deep and this from where the error seems to occur from: -> https://github.com/starkware-libs/cairo-lang/blob/00ee90123c0bbaffe13dd05a79d2d57b0cb747be/src/starkware/starknet/wallets/open_zeppelin.py#L191

The contract_address isn't equal to actual_address, which leads into an assertion error.

cymqqqq commented 1 year ago

Hi @bajpai244 , can you try "starkli account deploy" command to deploy your own account.json? Firstly, you can install starkli environment.