Skip to content

Commit

Permalink
fix query info feature detection (#1305)
Browse files Browse the repository at this point in the history
  • Loading branch information
xlc committed Aug 2, 2023
1 parent 573d083 commit 3c768e3
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 3c768e3

Please sign in to comment.