From 489cd21eb6ac20b9f3ea89c87bc8359766370771 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20K=C3=B6cher?= Date: Fri, 20 Jan 2023 12:57:36 +0100 Subject: [PATCH] Use correct runtime function name (#2116) The runtime function name doesn't change on chain, especially not for old runtimes. --- .../client/relay-chain-rpc-interface/src/rpc_client.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/cumulus/client/relay-chain-rpc-interface/src/rpc_client.rs b/cumulus/client/relay-chain-rpc-interface/src/rpc_client.rs index f755bf29b3..3d7e1c2c07 100644 --- a/cumulus/client/relay-chain-rpc-interface/src/rpc_client.rs +++ b/cumulus/client/relay-chain-rpc-interface/src/rpc_client.rs @@ -141,12 +141,9 @@ impl RelayChainRpcClient { at: RelayHash, index: SessionIndex, ) -> Result, RelayChainError> { - self.call_remote_runtime_function( - "ParachainHost_session_info_before_version_2", - at, - Some(index), - ) - .await + // The function in wasm never changes/gets augmented with a version + self.call_remote_runtime_function("ParachainHost_session_info", at, Some(index)) + .await } /// Scrape dispute relevant from on-chain, backing votes and resolved disputes.