diff --git a/Cargo.lock b/Cargo.lock index d9db6a482..aedfd336e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2717,6 +2717,7 @@ dependencies = [ "clap", "colored", "entropy-client", + "entropy-shared", "hex", "sp-core 31.0.0", "sp-runtime 32.0.0", diff --git a/crates/shared/src/constants.rs b/crates/shared/src/constants.rs index d7723fed0..733740e4b 100644 --- a/crates/shared/src/constants.rs +++ b/crates/shared/src/constants.rs @@ -76,3 +76,6 @@ pub const SIGNER_THRESHOLD: u8 = 2; /// For testing to line up chain mock data and reshare_test pub const TEST_RESHARE_BLOCK_NUMBER: u32 = 5; + +/// Program version number, must be incremented if version number changes +pub const PROGRAM_VERSION_NUMBER: u8 = 0; \ No newline at end of file diff --git a/crates/test-cli/Cargo.toml b/crates/test-cli/Cargo.toml index b027455c2..e8c625ceb 100644 --- a/crates/test-cli/Cargo.toml +++ b/crates/test-cli/Cargo.toml @@ -20,3 +20,4 @@ hex ="0.4.3" bincode ="1.3.3" x25519-dalek ="2.0.1" sp-runtime ={ version="32.0.0", default-features=false } +entropy-shared ={ version="0.2.0", path="../shared" } diff --git a/crates/test-cli/src/lib.rs b/crates/test-cli/src/lib.rs index 2ab977e0b..f6f398d9b 100644 --- a/crates/test-cli/src/lib.rs +++ b/crates/test-cli/src/lib.rs @@ -38,6 +38,7 @@ use subxt::{ utils::{AccountId32 as SubxtAccountId32, H256}, OnlineClient, }; +pub use entropy_shared::PROGRAM_VERSION_NUMBER; #[derive(Parser, Debug, Clone)] #[clap(