mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 10:31:04 +00:00
Remove PlainorMap enum; plain and map values now use same struct to simplify usage
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user