refactor folder structure

Signed-off-by: Matias Salimbene <matias.salimbene@gmail.com>
This commit is contained in:
Matias Salimbene 2022-02-19 12:09:07 -03:00
parent b810bc6cd0
commit 59aa2bf093
4 changed files with 6 additions and 4 deletions

View file

@ -1,4 +1,4 @@
package main
package TokenERC721Contract
import (
"encoding/base64"

View file

@ -1,4 +1,4 @@
package main
package TokenERC721Contract
import (
"encoding/base64"

View file

@ -2,7 +2,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
package main
package TokenERC721Contract
// Define structs to be used by chaincode
type Nft struct {

View file

@ -5,12 +5,14 @@
package main
import (
"github.com/hyperledger/fabric-samples/token-erc-721/go/chaincode"
"github.com/hyperledger/fabric-contract-api-go/contractapi"
"github.com/hyperledger/fabric-contract-api-go/metadata"
)
func main() {
hlpNftContract := new(TokenERC721Contract)
hlpNftContract := new(chaincode.TokenERC721Contract)
hlpNftContract.Info.Version = "0.0.1"
hlpNftContract.Info.Description = "ERC-721 fabric port"
hlpNftContract.Info.License = new(metadata.LicenseMetadata)