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 {
animation_url: string | null;
external_app_url: string | null;
metadata: Record<string, unknown> | null;
owner: AddressParam;
owner: AddressParam | null;
token: TokenInfo;
}
......
......@@ -60,16 +60,18 @@ const TokenInstanceDetails = ({ data, scrollRef }: Props) => {
>
<TokenSnippet hash={ data.token.address } name={ data.token.name }/>
</DetailsInfoItem>
<DetailsInfoItem
title="Owner"
hint="Current owner of this token instance"
>
<Address>
<AddressIcon address={ data.owner }/>
<AddressLink type="address" hash={ data.owner.hash } ml={ 2 }/>
<CopyToClipboard text={ data.owner.hash }/>
</Address>
</DetailsInfoItem>
{ data.owner && (
<DetailsInfoItem
title="Owner"
hint="Current owner of this token instance"
>
<Address>
<AddressIcon address={ data.owner }/>
<AddressLink type="address" hash={ data.owner.hash } ml={ 2 }/>
<CopyToClipboard text={ data.owner.hash }/>
</Address>
</DetailsInfoItem>
) }
<TokenInstanceCreatorAddress hash={ data.token.address }/>
<DetailsInfoItem
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