Fixed fabric-samples/asset-transfer-basic/application-gateway-typescript grpc lcient type check

Signed-off-by: k3t4ngit <ketantiwari@live.in>
This commit is contained in:
k3t4ngit 2023-03-22 00:41:13 +05:30 committed by Ry Jones
parent 7c42ff3d8e
commit 42d6e6a3dc

View file

@ -5,7 +5,7 @@
*/
import * as grpc from '@grpc/grpc-js';
import { connect, Contract, Identity, Signer, signers } from '@hyperledger/fabric-gateway';
import { connect, Contract, GrpcClient, Identity, Signer, signers } from '@hyperledger/fabric-gateway';
import * as crypto from 'crypto';
import { promises as fs } from 'fs';
import * as path from 'path';
@ -41,7 +41,7 @@ async function main(): Promise<void> {
await displayInputParameters();
// The gRPC client connection should be shared by all Gateway connections to this endpoint.
const client = await newGrpcConnection();
const client = await <GrpcClient> <unknown>newGrpcConnection();
const gateway = connect({
client,