Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions components/clarinet-files/src/project_manifest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use crate::schema;
use crate::FileAccessor;

pub const INVALID_CLARITY_VERSION: &str =
"clarity_version field invalid (value supported: 1, 2, 3)";
"clarity_version field invalid (value supported: 1, 2, 3, 4)";

#[derive(Deserialize, Debug, Clone)]
pub struct ClarityContractMetadata {
Expand Down Expand Up @@ -490,7 +490,7 @@ fn get_epoch_and_clarity_version(
"3.2" => StacksEpochId::Epoch32,
"3.3" => StacksEpochId::Epoch33,
_ => return Err(
"epoch field invalid (value supported: 2.0, 2.05, 2.1, 2.2, 2.3, 2.4, 3.0, 3.1, 3.2, 3.3 latest)"
"epoch field invalid (value supported: 2.0, 2.05, 2.1, 2.2, 2.3, 2.4, 3.0, 3.1, 3.2, 3.3, latest)"
.into(),
),
};
Expand Down
8 changes: 4 additions & 4 deletions components/clarinet-files/src/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ pub(crate) fn clarity_version_schema(_gen: &mut schemars::SchemaGenerator) -> sc

json_schema!({
"type": "integer",
"enum": [1, 2, 3],
"description": "Clarity language version (1, 2, or 3)"
"enum": [1, 2, 3, 4],
"description": "Clarity language version (1, 2, 3 or 4)"
})
}

Expand All @@ -63,7 +63,7 @@ pub(crate) fn epoch_string_schema(_gen: &mut schemars::SchemaGenerator) -> schem
"type": "string",
"enum": [
"2.0", "2.05", "2.1", "2.2", "2.3", "2.4", "2.5",
"3.0", "3.1", "3.2", "latest"
"3.0", "3.1", "3.2", "3.3", "latest"
]
})
}
Expand All @@ -73,7 +73,7 @@ pub(crate) fn epoch_number_schema(_gen: &mut schemars::SchemaGenerator) -> schem

json_schema!({
"type": "number",
"enum": [2.0, 2.05, 2.1, 2.2, 2.3, 2.4, 2.5, 3.0, 3.1, 3.2]
"enum": [2.0, 2.05, 2.1, 2.2, 2.3, 2.4, 2.5, 3.0, 3.1, 3.2, 3.3]
})
}

Expand Down
Loading