From b65cd1285eb4d21b5044d5891cb37e664e66251a Mon Sep 17 00:00:00 2001 From: Dmitry Novikov Date: Tue, 2 Aug 2022 13:46:43 +0300 Subject: [PATCH] Unstabilize API --- pallets/gear/src/internal.rs | 6 +++++- runtime/src/lib.rs | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pallets/gear/src/internal.rs b/pallets/gear/src/internal.rs index 56adcb12dd6..85352d7bb9a 100644 --- a/pallets/gear/src/internal.rs +++ b/pallets/gear/src/internal.rs @@ -307,7 +307,11 @@ where // Validating duration. if hold.expected_duration().is_zero() { - unreachable!("Failed to figure out correct wait hold bound"); + // TODO: Replace with unreachable call after: + // - `HoldBound` safety usage stabilized; + // - Issue #1173 solved. + log::error!("Failed to figure out correct wait hold bound"); + return; } // Querying origin message id. Fails in cases of `GasTree` invalidations. diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 598f609d9b1..7240c43afb6 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -125,7 +125,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { impl_name: create_runtime_str!("gear-node"), apis: RUNTIME_API_VERSIONS, authoring_version: 1, - spec_version: 1480, + spec_version: 1490, impl_version: 1, transaction_version: 1, state_version: 1,