mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 10:31: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,
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user