Hyperledger Fabric - unable to instantiate - Missing contract org.hyperledger.fabric in metadata

前端 未结 1 1999
花落未央
花落未央 2021-01-15 02:11

I followed the documentation for the Commercial paper, but stuck at instantiation.

I used Fabric 1.4, tried to search online, but have not find anyone has the proble

相关标签:
1条回答
  • 2021-01-15 03:02

    Until https://jira.hyperledger.org/browse/FAB-15287 is addressed the workaround for now is to modify the package.json files in the magnetocorp/contract and digibank/contract directories. Look for the entries

    "dependencies" : {
       "fabric-contract-api" : "~1.4.0",
       "fabric-shim": "~1.4.0"
    },
    

    and remove the ~ (tilda) from the version numbers ie

    "dependencies" : {
       "fabric-contract-api" : "1.4.0",
       "fabric-shim": "1.4.0"
    },
    

    This should revert it back to using 1.4.0 rather than 1.4.1 which at writing is the current 1.4 version and the sample should work.

    0 讨论(0)
提交回复
热议问题