Skip to content

Commit

Permalink
fix token builder for ics721 nft recieve
Browse files Browse the repository at this point in the history
  • Loading branch information
harish551 committed Feb 23, 2023
1 parent 02743f7 commit 2ccd832
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion types/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,9 @@ func (tb TokenBuilder) Build(classId, tokenId, tokenURI, tokenData string) (nft.
dataMap := make(map[string]interface{})
if err := json.Unmarshal(tokenDataBz, &dataMap); err != nil {
metadata, err := codectypes.NewAnyWithValue(&ONFTMetadata{
Data: string(tokenDataBz),
Data: string(tokenDataBz),
Transferable: true,
Extensible: true,
})
if err != nil {
return nft.NFT{}, err
Expand Down

0 comments on commit 2ccd832

Please sign in to comment.