Try-runtime proper return types (#7146)

* Try-runtime proper return types

* update

* oops

* use ensure

* update lockfile for {"substrate"}

---------

Co-authored-by: parity-processbot <>
This commit is contained in:
Sergej Sakacandparity-processbot authored and GitHub committed 2023-05-23 07:40:37 +00:00
1 parent 23a737257d
commit 2b6f0b0194
10 files changed
+214 -213

No files matched your search

+2 -2
View File
@@ -2059,7 +2059,7 @@ mod clean_state_migration {
impl OnRuntimeUpgrade for CleanMigrate {
#[cfg(feature = "try-runtime")]
fn pre_upgrade() -> Result<Vec<u8>, &'static str> {
fn pre_upgrade() -> Result<Vec<u8>, sp_runtime::TryRuntimeError> {
Ok(Default::default())
}
@@ -2071,7 +2071,7 @@ mod clean_state_migration {
}
#[cfg(feature = "try-runtime")]
fn post_upgrade(_state: Vec<u8>) -> Result<(), &'static str> {
fn post_upgrade(_state: Vec<u8>) -> Result<(), sp_runtime::TryRuntimeError> {
frame_support::ensure!(
!AutoLimits::exists() && !SignedMigrationMaxLimits::exists(),
"State migration clean.",