fabric-samples/token-erc-1155/chaincode-go/erc1155.go
Mark S. Lewis 110e732259 Update Go chaincode to fabric-contract-api-go/v2
Signed-off-by: Mark S. Lewis <Mark.S.Lewis@outlook.com>
2024-06-21 15:18:12 -04:00

27 lines
423 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/v2/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())
}
}