mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-25 19:15:10 +00:00
linting
Signed-off-by: Matthias Sieber <matthias.sieber@loxeinc.com>
This commit is contained in:
parent
a0e767d838
commit
2c9f8fbc20
8 changed files with 15 additions and 16 deletions
|
|
@ -3,8 +3,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Gateway, Wallets } from 'fabric-network';
|
import { Gateway, Wallets } from 'fabric-network';
|
||||||
import * as path from 'path';
|
|
||||||
import * as fs from 'fs';
|
import * as fs from 'fs';
|
||||||
|
import * as path from 'path';
|
||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Gateway, Wallets } from 'fabric-network';
|
import { Gateway, Wallets } from 'fabric-network';
|
||||||
import * as path from 'path';
|
|
||||||
import * as fs from 'fs';
|
import * as fs from 'fs';
|
||||||
|
import * as path from 'path';
|
||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
|
|
@ -2,16 +2,16 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Wallets, X509Identity } from 'fabric-network';
|
|
||||||
import * as FabricCAServices from 'fabric-ca-client';
|
import * as FabricCAServices from 'fabric-ca-client';
|
||||||
import * as path from 'path';
|
import { Wallets, X509Identity } from 'fabric-network';
|
||||||
import * as fs from 'fs';
|
import * as fs from 'fs';
|
||||||
|
import * as path from 'path';
|
||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
try {
|
try {
|
||||||
// load the network configuration
|
// load the network configuration
|
||||||
const ccpPath = path.resolve(__dirname, '..', '..', '..', 'test-network', 'organizations', 'peerOrganizations', 'org1.example.com', 'connection-org1.json');
|
const ccpPath = path.resolve(__dirname, '..', '..', '..', 'test-network', 'organizations', 'peerOrganizations', 'org1.example.com', 'connection-org1.json');
|
||||||
let ccp = JSON.parse(fs.readFileSync(ccpPath, 'utf8'));
|
const ccp = JSON.parse(fs.readFileSync(ccpPath, 'utf8'));
|
||||||
|
|
||||||
// Create a new CA client for interacting with the CA.
|
// Create a new CA client for interacting with the CA.
|
||||||
const caURL = ccp.certificateAuthorities['ca.org1.example.com'].url;
|
const caURL = ccp.certificateAuthorities['ca.org1.example.com'].url;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue