/* * SPDX-License-Identifier: Apache-2.0 */ package main import ( "github.com/hyperledger/fabric-contract-api-go/v2/contractapi" "github.com/hyperledger/fabric-contract-api-go/v2/metadata" "github.com/hyperledger/fabric-samples/token-erc-721/chaincode-go/chaincode" ) func main() { nftContract := new(chaincode.TokenERC721Contract) nftContract.Info.Version = "0.0.1" nftContract.Info.Description = "ERC-721 fabric port" nftContract.Info.License = new(metadata.LicenseMetadata) nftContract.Info.License.Name = "Apache-2.0" nftContract.Info.Contact = new(metadata.ContactMetadata) nftContract.Info.Contact.Name = "Matias Salimbene" chaincode, err := contractapi.NewChaincode(nftContract) chaincode.Info.Title = "ERC-721 chaincode" chaincode.Info.Version = "0.0.1" if err != nil { panic("Could not create chaincode from TokenERC721Contract." + err.Error()) } err = chaincode.Start() if err != nil { panic("Failed to start chaincode. " + err.Error()) } }