mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
Many users raise questions on how to test chaincode. It used to be much easier with the old shim, as they could directly use the old mock stub in the shim. Now that it no longer exists the fabcar example can provide an example of how to test chaincode. Also worth noting is our current directory structure of our Go chaincodes prevents the creation of mocks due to import cycles. This change also pushes the chaincode logic down into a `chaincode` package. Signed-off-by: Brett Logan <brett.t.logan@ibm.com> |
||
|---|---|---|
| .. | ||
| chaincodestub.go | ||
| statequeryiterator.go | ||
| transaction.go | ||