starknet-foundry
starknet-foundry copied to clipboard
Error: Invalid account address
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.
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.
Hi @Vap0RSh4wN , can you please provide additional info I requested? thanks.
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.