mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-23 01:55:10 +00:00
USERs and Groups functions added - Not tested yet
This commit is contained in:
parent
196d637243
commit
b1971261da
1 changed files with 23 additions and 0 deletions
23
asset-transfer-basic/chaincode-go/assetTransfer.txt
Normal file
23
asset-transfer-basic/chaincode-go/assetTransfer.txt
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
/*
|
||||||
|
SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"log"
|
||||||
|
|
||||||
|
"github.com/hyperledger/fabric-contract-api-go/contractapi"
|
||||||
|
"github.com/hyperledger/fabric-samples/asset-transfer-basic/chaincode-go/chaincode"
|
||||||
|
)
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
assetChaincode, err := contractapi.NewChaincode(&chaincode.SmartContract{})
|
||||||
|
if err != nil {
|
||||||
|
log.Panicf("Error creating asset-transfer-basic chaincode: %v", err)
|
||||||
|
}
|
||||||
|
|
||||||
|
if err := assetChaincode.Start(); err != nil {
|
||||||
|
log.Panicf("Error starting asset-transfer-basic chaincode: %v", err)
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue