Remove PlainorMap enum; plain and map values now use same struct to simplify usage

This commit is contained in:
James Wilson
2025-09-30 16:08:34 +01:00
parent fc793a8b79
commit 964c474088
8 changed files with 121 additions and 401 deletions
+1 -5
View File
@@ -557,11 +557,7 @@ async fn wait_runtime_upgrade_in_finalized_block<T: Config>(
)));
};
let client = client
.into_plain()
.expect("System.LastRuntimeUpgrade should always be a plain storage entry");
let value = match client.try_fetch().await {
let value = match client.try_fetch(()).await {
Ok(Some(value)) => value,
Ok(None) => return Some(Err(Error::Other(
"The storage item `system::lastRuntimeUpgrade` should always exist (2)".to_string(),