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

snforge_std version conflicts with counter-workshop

Open hanpham32 opened this issue 9 months ago • 0 comments

Which component is your bug related to?

snforge

Foundry Version

0.22.0

What operating system are you using?

MacOS

What system architecture are you using?

arm

What happened

Failed to build even when I've set my starknet version to be >=2.4.0 as required

#  Scarb.toml
[package]
name = "counter"
version = "0.1.0"

[project]
edition = "2023_01"

# See more keys and their definitions at https://docs.swmansion.com/scarb/docs/reference/manifest.html

[dependencies]
snforge_std = { git = "https://github.com/foundry-rs/starknet-foundry", tag = "v0.22.0" }
starknet = ">=2.4.0"


[[target.starknet-contract]]
# Enable CASM codegen.
casm = false

[casm]
generate_contract_class = true

Trace

error: Version solving failed:
- counter v0.1.0 (/Users/hanpham/Developer/Starknet/counter-workshop/counter/Scarb.toml) cannot use starknet v2.1.1 (std), because counter requires starknet >=2.4.0
- snforge_std v0.22.0 (git+https://github.com/foundry-rs/starknet-foundry?tag=v0.22.0) cannot use starknet v2.1.1 (std), because snforge_std requires starknet ^2.4.0

Scarb does not have real version solving algorithm yet.
Perhaps in the future this conflict could be resolved, but currently,
please upgrade your dependencies to use latest versions of their dependencies.

Is there an existing issue for this?

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

hanpham32 avatar May 06 '24 03:05 hanpham32