Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Commit

Permalink
Rename nft metadata 'attributes' field to 'properties'
Browse files Browse the repository at this point in the history
  • Loading branch information
atbe committed Oct 2, 2021
1 parent 80f43d7 commit ac70b64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions pkg/nftlabs/nft.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ func (sdk *NftModule) MintTo(metadata MintNftMetadata) (NftMetadata, error) {
Image: metadata.Image,
Description: metadata.Description,
Name: metadata.Name,
Properties: metadata.Properties,
}, err
}

Expand Down
4 changes: 2 additions & 2 deletions pkg/nftlabs/nft_metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ type NftMetadata struct {
Name string `json:"name"`
Description string `json:"description"`
Image string `json:"image"`
Attributes interface{} `json:"attributes"`
Properties interface{} `json:"properties"`
}

type MintNftMetadata struct {
Name string `json:"name"`
Description string `json:"description"`
Image string `json:"image"`
Attributes interface{} `json:"attributes"`
Properties interface{} `json:"properties"`
}

0 comments on commit ac70b64

Please sign in to comment.