Commit graph

2 commits

Author SHA1 Message Date
r2roC
59e1e47bd0 Update asset_transfer_ledger_chaincode.go
Small off-by-1 bug fix.

Signed-off-by: r2roC <arturo@IBM.com>

run fabcar go  (#232)

* add go/runfabcar.sh

Signed-off-by: Acmefocus <107723772@qq.com>

* add set hosts and env in go

Signed-off-by: Acmefocus <107723772@qq.com>

* Update fabcar/startFabric.sh

Co-authored-by: Sijo Cherian <sijocherian@users.noreply.github.com>
Signed-off-by: Acmefocus <107723772@qq.com>

* Update startFabric.sh

delete  set  /etc/hosts

Signed-off-by: Acmefocus <107723772@qq.com>

* add environment variable DISCOVERY_AS_LOCALHOST

Signed-off-by: Acmefocus <107723772@qq.com>

Co-authored-by: Sijo Cherian <sijocherian@users.noreply.github.com>

Fix asset transfer go chaincode functions for
CreateAsset and UpdateAsset.

Signed-off-by: Chris Gabriel <chris_gabriel_98@yahoo.com>

Add param types.

Signed-off-by: Chris Gabriel <chris_gabriel_98@yahoo.com>

Update smartcontract.go and smartcontract_test.go

Signed-off-by: Chris Gabriel <chris_gabriel_98@yahoo.com>
2020-07-11 10:59:39 -05:00
Brett Logan
a04db374aa Refactor Chaincode Into Idiomatic Go
Cleans up the code and pushes the smart contract
implementation down into a `chaincode` package.
This is in prep for implementing unit testing in the
chaincode, as you cannot mock code that is part of
the main package.

Signed-off-by: Brett Logan <brett.t.logan@ibm.com>
2020-07-10 05:59:22 -04:00