diff --git a/.github/workflows/tests-rs-drive-abci.yml b/.github/workflows/tests-rs-drive-abci.yml index 6e70a8540bd..721e3f72cd5 100644 --- a/.github/workflows/tests-rs-drive-abci.yml +++ b/.github/workflows/tests-rs-drive-abci.yml @@ -238,7 +238,7 @@ jobs: uses: ./.github/actions/rust - name: Run upgrade fork tests - run: cargo test --package=drive-abci --test=strategy_tests::upgrade_fork_tests --all-features --locked + run: cargo test --package=drive-abci --test=strategy_tests --all-features --locked -- upgrade_fork_tests env: RUSTC_WRAPPER: sccache SCCACHE_BUCKET: multi-runner-cache-x1xibo9c diff --git a/packages/rs-drive-abci/src/error/execution.rs b/packages/rs-drive-abci/src/error/execution.rs index efa4e2a6c83..916240195b3 100644 --- a/packages/rs-drive-abci/src/error/execution.rs +++ b/packages/rs-drive-abci/src/error/execution.rs @@ -90,7 +90,7 @@ pub enum ExecutionError { /// A protocol upgrade incoherence error occurred. #[error("protocol upgrade incoherence error: {0}")] - ProtocolUpgradeIncoherence(&'static str), + ProtocolUpgradeIncoherence(String), /// Data is missing from the drive. #[error("drive missing data error: {0}")] diff --git a/packages/rs-drive-abci/src/execution/platform_events/protocol_upgrade/check_for_desired_protocol_upgrade/v0/mod.rs b/packages/rs-drive-abci/src/execution/platform_events/protocol_upgrade/check_for_desired_protocol_upgrade/v0/mod.rs index ba60c5a3fec..e7f2283e878 100644 --- a/packages/rs-drive-abci/src/execution/platform_events/protocol_upgrade/check_for_desired_protocol_upgrade/v0/mod.rs +++ b/packages/rs-drive-abci/src/execution/platform_events/protocol_upgrade/check_for_desired_protocol_upgrade/v0/mod.rs @@ -37,7 +37,7 @@ impl Platform { if versions_passing_threshold.len() > 1 { return Err(Error::Execution( ExecutionError::ProtocolUpgradeIncoherence( - "only at most 1 version should be able to pass the threshold to upgrade", + format!("only at most 1 version should be able to pass the threshold to upgrade, got versions [{}]", versions_passing_threshold.iter().map(|protocol_version| protocol_version.to_string()).collect::>().join(", ")) ), )); }