Commit b875a1e2 authored by tom goriunov's avatar tom goriunov Committed by GitHub

Merge pull request #766 from blockscout/token-instance/optinal-owner

make owner optional for token instance
parents a78b3c0c d497fcb2
...@@ -41,7 +41,7 @@ export interface TokenInstance { ...@@ -41,7 +41,7 @@ export interface TokenInstance {
animation_url: string | null; animation_url: string | null;
external_app_url: string | null; external_app_url: string | null;
metadata: Record<string, unknown> | null; metadata: Record<string, unknown> | null;
owner: AddressParam; owner: AddressParam | null;
token: TokenInfo; token: TokenInfo;
} }
......
...@@ -60,6 +60,7 @@ const TokenInstanceDetails = ({ data, scrollRef }: Props) => { ...@@ -60,6 +60,7 @@ const TokenInstanceDetails = ({ data, scrollRef }: Props) => {
> >
<TokenSnippet hash={ data.token.address } name={ data.token.name }/> <TokenSnippet hash={ data.token.address } name={ data.token.name }/>
</DetailsInfoItem> </DetailsInfoItem>
{ data.owner && (
<DetailsInfoItem <DetailsInfoItem
title="Owner" title="Owner"
hint="Current owner of this token instance" hint="Current owner of this token instance"
...@@ -70,6 +71,7 @@ const TokenInstanceDetails = ({ data, scrollRef }: Props) => { ...@@ -70,6 +71,7 @@ const TokenInstanceDetails = ({ data, scrollRef }: Props) => {
<CopyToClipboard text={ data.owner.hash }/> <CopyToClipboard text={ data.owner.hash }/>
</Address> </Address>
</DetailsInfoItem> </DetailsInfoItem>
) }
<TokenInstanceCreatorAddress hash={ data.token.address }/> <TokenInstanceCreatorAddress hash={ data.token.address }/>
<DetailsInfoItem <DetailsInfoItem
title="Token ID" title="Token ID"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment