Fix explorer mint account validator to accept null owner (#11587)

This commit is contained in:
Justin Starry 2020-08-13 02:06:49 +08:00 committed by GitHub
parent 5715f0b81a
commit cbccac90ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -110,7 +110,7 @@ function MintAccountCard({
<td className="text-lg-right">Uninitialized</td>
</tr>
)}
{info.owner !== undefined && (
{info.owner && (
<tr>
<td>Owner</td>
<td className="text-lg-right">

View File

@ -38,7 +38,7 @@ export type MintAccountInfo = StructType<typeof MintAccountInfo>;
export const MintAccountInfo = object({
decimals: number(),
isInitialized: boolean(),
owner: optional(Pubkey),
owner: nullable(optional(Pubkey)),
});
export type MultisigAccountInfo = StructType<typeof MultisigAccountInfo>;