starknet-foundry icon indicating copy to clipboard operation
starknet-foundry copied to clipboard

Error: Invalid account address

Open Vap0RSh4wN opened this issue 11 months ago • 3 comments

Which component is your bug related to?

sncast

Foundry Version

0.19.0

What operating system are you using?

Linux

What system architecture are you using?

x86

What happened

I tried: sncast --url http://127.0.0.1:5050 account create --name some --class-hash 0x05400......9d3645c

then

sncast --url http://127.0.0.1:5050 account deploy --name some --max-fee 864600000000

scarb build

but when I declare the contract:

sncast -a some --url http://127.0.0.1:5050/ declare --contract-name ContractName

I got:

Error: Invalid account address

and got same error when I try to use snfoundry.toml.

Trace

Error: Invalid account address

Is there an existing issue for this?

  • [X] I have searched the existing issues and verified no issue exits for this problem.

Vap0RSh4wN avatar Mar 18 '24 09:03 Vap0RSh4wN

Hi @Vap0RSh4wN , it seems that you are using devnet to create and deploy an account. Did you remember to mint tokens for your newly created account, in order to be able to deploy it? https://github.com/0xSpaceShard/starknet-devnet-rs?tab=readme-ov-file#mint-token

Can you show me full commands you are trying to run, along with their outputs so I can better determine what might be an issue (if it's not minting)? Thanks.

THenry14 avatar Apr 19 '24 12:04 THenry14

Hi @Vap0RSh4wN , can you please provide additional info I requested? thanks.

THenry14 avatar Apr 26 '24 11:04 THenry14

Closing this for now, as it seems this might be a user error. If you believe this not to be true and are able to provide repro steps, please reopen the issue. thanks.

THenry14 avatar May 06 '24 07:05 THenry14