Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Use correct runtime function name (#2116)
Browse files Browse the repository at this point in the history
The runtime function name doesn't change on chain, especially not for old runtimes.
  • Loading branch information
bkchr committed Jan 20, 2023
1 parent 46d3091 commit 2b9a640
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions client/relay-chain-rpc-interface/src/rpc_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,9 @@ impl RelayChainRpcClient {
at: RelayHash,
index: SessionIndex,
) -> Result<Option<OldV1SessionInfo>, 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.
Expand Down

0 comments on commit 2b9a640

Please sign in to comment.