mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 07:01:03 +00:00
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:
@@ -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.",
|
||||
|
||||
Reference in New Issue
Block a user