Skip to content

Commit

Permalink
Omit empty image and name fields (#76)
Browse files Browse the repository at this point in the history
* Omit empty image and name fields

* Push minor version
  • Loading branch information
cxkoda authored Jan 17, 2023
1 parent 658008f commit 6bf1b5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions erc721/erc721.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ func CollectionFromMetadata(md []*Metadata) Collection {
// Metadata carries a parsed JSON payload from ERC721 metadata, compatible with
// OpenSea.
type Metadata struct {
Name string `json:"name"`
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
Image string `json:"image"`
Image string `json:"image,omitempty"`
AnimationURL string `json:"animation_url,omitempty"`
ExternalURL string `json:"external_url,omitempty"`
CollectionName string `json:"collection_name,omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@divergencetech/ethier",
"version": "0.48.0",
"version": "0.49.0",
"description": "Golang and Solidity SDK to make Ethereum development ethier",
"main": "\"\"",
"scripts": {
Expand Down

0 comments on commit 6bf1b5a

Please sign in to comment.