diff --git a/examples/cactus-example-supply-chain-backend/src/main/typescript/infrastructure/supply-chain-app-dummy-infrastructure.ts b/examples/cactus-example-supply-chain-backend/src/main/typescript/infrastructure/supply-chain-app-dummy-infrastructure.ts index 21b7854806a..51b9894678f 100644 --- a/examples/cactus-example-supply-chain-backend/src/main/typescript/infrastructure/supply-chain-app-dummy-infrastructure.ts +++ b/examples/cactus-example-supply-chain-backend/src/main/typescript/infrastructure/supply-chain-app-dummy-infrastructure.ts @@ -274,7 +274,10 @@ export class SupplyChainAppDummyInfrastructure { }, moduleName: "shipment", targetOrganizations: [org1Env], - pinnedDeps: ["github.com/hyperledger/fabric@v1.4.8"], + pinnedDeps: [ + "github.com/hyperledger/fabric@v1.4.8", + "golang.org/x/net@v0.0.0-20210503060351-7fd8e65b6420", + ], }); this.log.debug(res); diff --git a/packages/cactus-plugin-ledger-connector-fabric/README.md b/packages/cactus-plugin-ledger-connector-fabric/README.md index 7f0ef4ed505..e5232f8a14d 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/README.md +++ b/packages/cactus-plugin-ledger-connector-fabric/README.md @@ -45,7 +45,7 @@ The above diagram shows the sequence diagraom of transact() method of the Plugin ## Usage -To use this import public-api and create new **PluginLedgerConnectorFabric** and **ChainCodeCompiler**. +To use this import public-api and create new **PluginLedgerConnectorFabric** and **ChainCodeCompiler**. ```typescript const connector: PluginLedgerConnectorFabric = new PluginLedgerConnectorFabric(pluginOptions); const compiler = new ChainCodeCompiler({ logLevel }); @@ -55,7 +55,10 @@ For compile the chaincodes: const opts: ICompilationOptions = { fileName: "hello-world-contract.go", moduleName: "hello-world-contract", - pinnedDeps: ["github.com/hyperledger/fabric@v1.4.8"], + pinnedDeps: [ + "github.com/hyperledger/fabric@v1.4.8", + "golang.org/x/net@v0.0.0-20210503060351-7fd8e65b6420", + ], modTidyOnly: true, // we just need the go.mod file so tidy only is enough sourceCode: HELLO_WORLD_CONTRACT_GO_SOURCE, }; @@ -108,7 +111,7 @@ docker run \ "discoveryOptions": { "enabled": true, "asLocalhost: true" - } + } }}}]' \ cplcb ``` @@ -134,7 +137,7 @@ docker run \ "discoveryOptions": { "enabled": true, "asLocalhost: true" - } + } }}}]' ``` @@ -154,7 +157,7 @@ echo '[{"packageName": "@hyperledger/cactus-plugin-ledger-connector-fabric", "ty "discoveryOptions": { "enabled": true, "asLocalhost: true" - } + } }}}]' > cactus.json docker run \ @@ -196,7 +199,7 @@ docker run \ "discoveryOptions": { "enabled": true, "asLocalhost: true" - } + } }}}]' \ cplcb ``` @@ -288,4 +291,4 @@ Please review [CONTIRBUTING.md](../../CONTRIBUTING.md) to get started. This distribution is published under the Apache License Version 2.0 found in the [LICENSE](../../LICENSE) file. -## Acknowledgments +## Acknowledgments diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/test/typescript/integration/fabric-v1-4-x/deploy-cc-from-golang-source.test.ts b/packages/cactus-plugin-ledger-connector-fabric/src/test/typescript/integration/fabric-v1-4-x/deploy-cc-from-golang-source.test.ts index cf02ccdfab6..53a8e9a2b1e 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/test/typescript/integration/fabric-v1-4-x/deploy-cc-from-golang-source.test.ts +++ b/packages/cactus-plugin-ledger-connector-fabric/src/test/typescript/integration/fabric-v1-4-x/deploy-cc-from-golang-source.test.ts @@ -51,8 +51,10 @@ test(testCase, async (t: Test) => { const ledger = new FabricTestLedgerV1({ emitContainerLogs: true, publishAllPorts: true, + // imageName: "faio14x", + // imageVersion: "latest", imageName: "hyperledger/cactus-fabric-all-in-one", - imageVersion: "2021-03-02-ssh-hotfix", + imageVersion: "2021-04-21-2016750", }); await ledger.start(); t.doesNotThrow(() => ledger.getContainer(), "Container is set OK"); @@ -169,7 +171,10 @@ test(testCase, async (t: Test) => { }, moduleName: "hello-world", targetOrganizations: [org1Env, org2Env], - pinnedDeps: ["github.com/hyperledger/fabric@v1.4.8"], + pinnedDeps: [ + "github.com/hyperledger/fabric@v1.4.8", + "golang.org/x/net@v0.0.0-20210503060351-7fd8e65b6420", + ], }); const { diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/test/typescript/unit/chain-code-compiler.test.ts b/packages/cactus-plugin-ledger-connector-fabric/src/test/typescript/unit/chain-code-compiler.test.ts index 7d5b61a0ab9..41badb95135 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/test/typescript/unit/chain-code-compiler.test.ts +++ b/packages/cactus-plugin-ledger-connector-fabric/src/test/typescript/unit/chain-code-compiler.test.ts @@ -17,7 +17,10 @@ test.skip("compiles chaincode straight from go source code", async (t: Test) => const opts: ICompilationOptions = { fileName: "hello-world-contract.go", moduleName: "hello-world-contract", - pinnedDeps: ["github.com/hyperledger/fabric@v1.4.8"], + pinnedDeps: [ + "github.com/hyperledger/fabric@v1.4.8", + "golang.org/x/net@v0.0.0-20210503060351-7fd8e65b6420", + ], sourceCode: HELLO_WORLD_CONTRACT_GO_SOURCE, };