From 10cf45203a7e054b64e37df73f84dbad368ceb7a Mon Sep 17 00:00:00 2001 From: Marri Harish Date: Mon, 5 Feb 2024 22:16:02 +0530 Subject: [PATCH] access uri hash in onft query (#142) --- x/onft/keeper/onft.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/x/onft/keeper/onft.go b/x/onft/keeper/onft.go index 45655ec3..e147efff 100644 --- a/x/onft/keeper/onft.go +++ b/x/onft/keeper/onft.go @@ -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, @@ -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(), @@ -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(),