Skip to content

Commit 2b9a640

Browse files
authored
Use correct runtime function name (#2116)
The runtime function name doesn't change on chain, especially not for old runtimes.
1 parent 46d3091 commit 2b9a640

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

client/relay-chain-rpc-interface/src/rpc_client.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,9 @@ impl RelayChainRpcClient {
141141
at: RelayHash,
142142
index: SessionIndex,
143143
) -> Result<Option<OldV1SessionInfo>, RelayChainError> {
144-
self.call_remote_runtime_function(
145-
"ParachainHost_session_info_before_version_2",
146-
at,
147-
Some(index),
148-
)
149-
.await
144+
// The function in wasm never changes/gets augmented with a version
145+
self.call_remote_runtime_function("ParachainHost_session_info", at, Some(index))
146+
.await
150147
}
151148

152149
/// Scrape dispute relevant from on-chain, backing votes and resolved disputes.

0 commit comments

Comments
 (0)