mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 02:17:58 +00:00
Fix version check for renamed runtime api methods (#2190)
This commit is contained in:
@@ -389,7 +389,7 @@ fn generate_call_api_at_calls(decl: &ItemTrait) -> Result<TokenStream> {
|
||||
#(
|
||||
// Check if we need to call the function by an old name.
|
||||
if version.apis.iter().any(|(s, v)| {
|
||||
s == &ID && #versions < *v
|
||||
s == &ID && *v < #versions
|
||||
}) {
|
||||
return call_runtime_at.call_api_at::<R, fn() -> _>(
|
||||
at,
|
||||
|
||||
Reference in New Issue
Block a user