Skip to content
Snippets Groups Projects
Commit 2c401652 authored by Bastian Köcher's avatar Bastian Köcher Committed by GitHub
Browse files

Fix version check for renamed runtime api methods (#2190)

parent eec6f3b9
No related merge requests found
......@@ -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,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment