Skip to content

Commit

Permalink
fix query info feature detection
Browse files Browse the repository at this point in the history
  • Loading branch information
xlc committed Jul 11, 2023
1 parent cafea8c commit 4e621f1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/services/blocks/BlocksService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,10 @@ export class BlocksService extends AbstractService {
continue;
}

if (!api.rpc.payment || !api.rpc.payment.queryInfo) {
if (
!api.rpc.payment?.queryInfo &&
!api.call.transactionPaymentApi?.queryInfo
) {
extrinsics[idx].info = {
error: 'Rpc method payment::queryInfo is not available',
};
Expand Down

0 comments on commit 4e621f1

Please sign in to comment.