foundry-rs / starknet-foundry

Blazing fast toolkit for developing Starknet contracts.
https://foundry-rs.github.io/starknet-foundry/
MIT License
279 stars 138 forks source link

Deploy account with sncast failed #2249

Closed ChiHaoLu closed 1 week ago

ChiHaoLu commented 1 week ago

Which component is your bug related to?

sncast

Foundry Version

0.25.0

What operating system are you using?

MacOS

What system architecture are you using?

x86

What happened

I want to create an account on starknet sepolia but failed.

$ sncast \
  --url https://starknet-sepolia.infura.io/v3/<my_api_key> \
  account create \
  --name deployer
[WARNING] RPC node with the url https://starknet-sepolia.infura.io/v3/<my_api_key> uses incompatible version 0.5.1. Expected version: 0.7.0
command: account create
error: Failed to estimate account deployment fee. Reason: Unknown RPC error: JSON-RPC error: code=-32602, message="Invalid params", data={"reason":"expected value at line 1 column 445"}

Trace

No response

Is there an existing issue for this?

ChiHaoLu commented 1 week ago

I change to the alchemy rpc url w/ v0.7 and it will success.