mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-26 03:25:09 +00:00
refactor folder structure
Signed-off-by: Matias Salimbene <matias.salimbene@gmail.com>
This commit is contained in:
parent
b810bc6cd0
commit
59aa2bf093
4 changed files with 6 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
|||
package main
|
||||
package TokenERC721Contract
|
||||
|
||||
import (
|
||||
"encoding/base64"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package main
|
||||
package TokenERC721Contract
|
||||
|
||||
import (
|
||||
"encoding/base64"
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
package main
|
||||
package TokenERC721Contract
|
||||
|
||||
// Define structs to be used by chaincode
|
||||
type Nft struct {
|
||||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue