fabric-samples/token-erc-1155/chaincode-go/erc1155.go
Baran Kılıç 36fb3a9273
Add ERC1155 chaincode in Go (#463)
Signed-off-by: Baran Kılıç <baran.kilic@boun.edu.tr>
2021-09-01 23:05:57 +02:00

27 lines
420 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
2021 Baran Kılıç <baran.kilic@boun.edu.tr>
SPDX-License-Identifier: Apache-2.0
*/
package main
import (
"erc1155/chaincode"
"github.com/hyperledger/fabric-contract-api-go/contractapi"
)
func main() {
smartContract := new(chaincode.SmartContract)
cc, err := contractapi.NewChaincode(smartContract)
if err != nil {
panic(err.Error())
}
if err := cc.Start(); err != nil {
panic(err.Error())
}
}