Use correct runtime function name (#2116)

The runtime function name doesn't change on chain, especially not for old runtimes.
This commit is contained in:
Bastian Köcher
2023-01-20 12:57:36 +01:00
committed by GitHub
parent 95b57c3e8c
commit 489cd21eb6
@@ -141,12 +141,9 @@ impl RelayChainRpcClient {
at: RelayHash, at: RelayHash,
index: SessionIndex, index: SessionIndex,
) -> Result<Option<OldV1SessionInfo>, RelayChainError> { ) -> Result<Option<OldV1SessionInfo>, RelayChainError> {
self.call_remote_runtime_function( // The function in wasm never changes/gets augmented with a version
"ParachainHost_session_info_before_version_2", self.call_remote_runtime_function("ParachainHost_session_info", at, Some(index))
at, .await
Some(index),
)
.await
} }
/// Scrape dispute relevant from on-chain, backing votes and resolved disputes. /// Scrape dispute relevant from on-chain, backing votes and resolved disputes.