Prerequisites
The user should have a folder with valid chaincode files.
How to zip chaincode for Hyperledger fabric 2.2.0 in DL Gateway
-
Go to the folder where chaincode files are present in your system
-
Select the files to be zipped
-
Right-click after selecting the files, from the list of options select Send to
-
After selecting send to another set of options appear select Compressed(zipped) folder
A. Following example is for NodeJS. (Note: only accepted files for NodeJS are .js and .json).
B. Following example is for Golang. (Note: only accepted files for Golang are .go, .mod and .sum).
-
A zipped folder has been created
-
To instantiate/ upgrade the chaincode. The User will be required to browse and select the zipped folder from the folder where the zipped folder has been created.