mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 22:11:02 +00:00
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:
@@ -141,11 +141,8 @@ 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,
|
|
||||||
Some(index),
|
|
||||||
)
|
|
||||||
.await
|
.await
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user