Skip to content

Commit

Permalink
Merge pull request #462 from helium/fix/to-asset-creator-address
Browse files Browse the repository at this point in the history
Make creator address a pub key when mapping assets.
  • Loading branch information
matthewcarlreetz authored Oct 26, 2023
2 parents 1ce59a4 + 1bf8b8f commit 76a824c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions packages/spl-utils/src/mplAssetAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,21 @@ export async function getAssets(
function toAsset(result: any): Asset {
return {
...result,
creators: result.creators.map(
({
address,
share,
verified,
}: {
address: string;
share: number;
verified: boolean;
}) => ({
share,
verified,
address: address && new PublicKey(address),
})
),
id: new PublicKey(result.id),
grouping:
result.grouping &&
Expand Down

0 comments on commit 76a824c

Please sign in to comment.