How to zip chaincode for Hyperledger fabric 2.2.0 in DL Gateway

Prerequisites
The user should have a folder with valid chaincode files.

How to zip chaincode for Hyperledger fabric 2.2.0 in DL Gateway

  1. Go to the folder where chaincode files are present in your system

  2. Select the files to be zipped

  3. Right-click after selecting the files, from the list of options select Send to

  4. 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).

    image

    B. Following example is for Golang. (Note: only accepted files for Golang are .go, .mod and .sum).

    image

  5. A zipped folder has been created
    image

  6. 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.