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,11 +141,8 @@ impl RelayChainRpcClient {
at: RelayHash,
index: SessionIndex,
) -> Result<Option<OldV1SessionInfo>, RelayChainError> {
self.call_remote_runtime_function(
"ParachainHost_session_info_before_version_2",
at,
Some(index),
)
// The function in wasm never changes/gets augmented with a version
self.call_remote_runtime_function("ParachainHost_session_info", at, Some(index))
.await
}