Closed Shirikatsu closed 5 years ago
You'll need to add all non-fabric dependencies to a vendor folder under your chaincode folder - i.e. github.com/hyperledger/fabric-chaincode-evm/evmcc/vendor. You can either use govendor or dep to populate it.
Thanks for educating me on some go dependency stuff and troubleshooting my issue :) It works, much appreciated.
I am using the example network to attempt to deploy custom chaincode:
and installing, in this instance, EVM chaincode:
then instantiating results in an error that references unrecognised imports:
As a test I included an extra import to the successfully instantiating
example_cc.go
code (and an extra omitted line to silence the unused import error):and instantiating this failed with:
It seems as though other external imports are somehow not found. Is this due to the fact that they are not installed on the peer and as such only Hyperledger libraries are usable without manual installation? How would one install dependencies of chaincode like this?