mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 18:41:03 +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,12 +141,9 @@ 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,
|
.await
|
||||||
Some(index),
|
|
||||||
)
|
|
||||||
.await
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Scrape dispute relevant from on-chain, backing votes and resolved disputes.
|
/// Scrape dispute relevant from on-chain, backing votes and resolved disputes.
|
||||||
|
|||||||
Reference in New Issue
Block a user