Skip to content

Commit

Permalink
Merge pull request #183 from andreyxdd/master
Browse files Browse the repository at this point in the history
docs: NFT example code fix (InvalidIfaceAssign)
  • Loading branch information
xssnick authored Apr 19, 2024
2 parents 0538358 + 38517ea commit 3b432be
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,14 +265,8 @@ fmt.Println(" owner :", nftData.OwnerAddress.String())
fmt.Println(" index :", nftData.Index)

if nftData.Initialized {
// convert content to cell, we need it to get full url
nftContentCell, err := nftData.Content.ContentCell()
if err != nil {
panic(err)
}

// get full nft's content url using collection method that will merge base url with nft's data
nftContent, err := collection.GetNFTContent(context.Background(), nftData.Index, nftContentCell)
nftContent, err := collection.GetNFTContent(context.Background(), nftData.Index, nftData.Content)
if err != nil {
panic(err)
}
Expand Down

0 comments on commit 3b432be

Please sign in to comment.