Skip to content

Commit

Permalink
fix comparison again
Browse files Browse the repository at this point in the history
  • Loading branch information
TarikGul committed Jul 20, 2024
1 parent 4c822ba commit 1636d4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api/src/base/Init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
const metadataApi = apis.find(([a]) => a.eq(blake2AsHex('Metadata', 64)));

// This chain does not have support for the metadataApi, or does not have the required version.
if (!metadataApi || metadataApi[1].toNumber() >= 2) {
if (!metadataApi || metadataApi[1].toNumber() < 2) {
l.warn('MetadataApi not available, rpc::state::get_metadata will be used.');

return at
Expand Down

0 comments on commit 1636d4e

Please sign in to comment.