mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-26 11:35:10 +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 (
|
import (
|
||||||
"encoding/base64"
|
"encoding/base64"
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
package main
|
package TokenERC721Contract
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/base64"
|
"encoding/base64"
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package main
|
package TokenERC721Contract
|
||||||
|
|
||||||
// Define structs to be used by chaincode
|
// Define structs to be used by chaincode
|
||||||
type Nft struct {
|
type Nft struct {
|
||||||
|
|
@ -5,12 +5,14 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
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/contractapi"
|
||||||
"github.com/hyperledger/fabric-contract-api-go/metadata"
|
"github.com/hyperledger/fabric-contract-api-go/metadata"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
hlpNftContract := new(TokenERC721Contract)
|
hlpNftContract := new(chaincode.TokenERC721Contract)
|
||||||
hlpNftContract.Info.Version = "0.0.1"
|
hlpNftContract.Info.Version = "0.0.1"
|
||||||
hlpNftContract.Info.Description = "ERC-721 fabric port"
|
hlpNftContract.Info.Description = "ERC-721 fabric port"
|
||||||
hlpNftContract.Info.License = new(metadata.LicenseMetadata)
|
hlpNftContract.Info.License = new(metadata.LicenseMetadata)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue