fabric-samples/token-erc-20/chaincode-go/token_erc_20.go
Julian Castrence 1829666e3a Rename token-account-based Directory to token-erc-20
FAB-18275

Signed-off-by: Julian Castrence <juliancastrence@ibm.com>
2020-11-21 11:08:18 -05:00

23 lines
506 B
Go

/*
SPDX-License-Identifier: Apache-2.0
*/
package main
import (
"log"
"github.com/hyperledger/fabric-contract-api-go/contractapi"
"github.com/hyperledger/fabric-samples/token-erc-20/chaincode-go/chaincode"
)
func main() {
tokenChaincode, err := contractapi.NewChaincode(&chaincode.SmartContract{})
if err != nil {
log.Panicf("Error creating token-erc-20 chaincode: %v", err)
}
if err := tokenChaincode.Start(); err != nil {
log.Panicf("Error starting token-erc-20 chaincode: %v", err)
}
}