mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-23 01:55:10 +00:00
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:
parent
7c42ff3d8e
commit
42d6e6a3dc
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue