Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TestEnvironment issue when dealing with Stacks epoch and Clarity versions #561

Open
csgui opened this issue Nov 20, 2024 · 0 comments
Open
Labels
bug Something isn't working testing

Comments

@csgui
Copy link
Collaborator

csgui commented Nov 20, 2024

The TestEnvironment is executing contracts with incorrect combination for epochs and Clarity versions. For instance, the following is incorrect:

Epoch20 working with Clarity::V3

Each epoch should only allow contract execution up to the default Clarity versions. Consider following default Clarity versions for Stacks epochs.

StacksEpochId::Epoch20 => ClarityVersion::Clarity1,
StacksEpochId::Epoch2_05 => ClarityVersion::Clarity1,
StacksEpochId::Epoch21 => ClarityVersion::Clarity2,
StacksEpochId::Epoch22 => ClarityVersion::Clarity2,
StacksEpochId::Epoch23 => ClarityVersion::Clarity2,
StacksEpochId::Epoch24 => ClarityVersion::Clarity2,
StacksEpochId::Epoch25 => ClarityVersion::Clarity2,
StacksEpochId::Epoch30 => ClarityVersion::Clarity3
@github-project-automation github-project-automation bot moved this to Status: 🆕 New in Stacks Core Eng Nov 20, 2024
@csgui csgui added testing bug Something isn't working labels Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working testing
Projects
Status: Status: 🆕 New
Development

No branches or pull requests

1 participant