From e10fcdf7b1b04b551cff49e94880030789b14705 Mon Sep 17 00:00:00 2001 From: Chewing Glass Date: Wed, 30 Aug 2023 08:57:48 -0500 Subject: [PATCH] fix(#439): Crash because creator address is string instead of public key --- src/utils/solanaUtils.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/utils/solanaUtils.ts b/src/utils/solanaUtils.ts index ac20c86b5..f2d97cd13 100644 --- a/src/utils/solanaUtils.ts +++ b/src/utils/solanaUtils.ts @@ -1726,6 +1726,10 @@ export function toAsset(hotspot: CompressedNFT): Asset { return { ...hotspot, id: new PublicKey(hotspot.id), + creators: hotspot.creators.map((c) => ({ + ...c, + address: new PublicKey(c.address), + })), grouping: hotspot.grouping && hotspot.grouping.map((g) => ({