fabric-mock-stub
fabric-mock-stub copied to clipboard
Mock implementation of the fabric-shim stub for testing
Hello. Trying this repo, I encountered a problem. I am using nodejs v10.15.1. However, during the yarn command, it returns: ``` [3/5] Fetching packages... error [email protected]: The engine "node" is...
You're initializing the timestamp [here](https://github.com/wearetheledger/fabric-mock-stub/blob/master/src/ChaincodeMockStub.ts#L134) but it evaluates to 0 when consuming from [StubHelper.getTxDate()](https://github.com/wearetheledger/fabric-node-chaincode-utils/blob/master/src/StubHelper.ts#L246) Use `Date.now()` as a default value