hirosystems / clarinet

Write, test and deploy high-quality smart contracts to the Stacks blockchain and Bitcoin.
https://hiro.so/clarinet
GNU General Public License v3.0
298 stars 130 forks source link

Prevent inconsistent clarinet config for contracts using the same file #1005

Open hugocaillard opened 1 year ago

hugocaillard commented 1 year ago

The same clarity file can be used for multiple smart contracts. In which case, we should probably warn/forbid inconsistent clarinet config with different epoch/version for the same file such as:

[contracts.ccd002-treasury-nyc-mining]
path = "contracts/extensions/ccd002-treasury.clar"
clarity_version = 2
epoch = 2.1

[contracts.ccd002-treasury-nyc-stacking]
path = "contracts/extensions/ccd002-treasury.clar"
clarity_version = 1
epoch = 2.05
smcclellan commented 1 year ago

Task: Include validation error.