Skip to content

Commit

Permalink
access uri hash in onft query (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
harish551 authored Feb 5, 2024
1 parent 19fb2dd commit 10cf452
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions x/onft/keeper/onft.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ func (k Keeper) GetONFT(ctx sdk.Context, denomID, onftID string) (nft exported.O
Description: nftMetadata.Description,
MediaURI: onft.Uri,
PreviewURI: nftMetadata.PreviewURI,
UriHash: onft.UriHash,
}
return types.ONFT{
Id: onft.Id,
Expand Down Expand Up @@ -162,6 +163,7 @@ func (k Keeper) GetONFTs(ctx sdk.Context, denomID string) (onfts []exported.ONFT
Description: nftMetadata.Description,
MediaURI: _nft.Uri,
PreviewURI: nftMetadata.PreviewURI,
UriHash: _nft.UriHash,
}
onfts = append(onfts, types.ONFT{
Id: _nft.GetId(),
Expand Down Expand Up @@ -193,6 +195,7 @@ func (k Keeper) GetOwnerONFTs(ctx sdk.Context, denomID string, owner sdk.AccAddr
Description: nftMetadata.Description,
MediaURI: _nft.Uri,
PreviewURI: nftMetadata.PreviewURI,
UriHash: _nft.UriHash,
}
onfts = append(onfts, types.ONFT{
Id: _nft.GetId(),
Expand Down

0 comments on commit 10cf452

Please sign in to comment.