Skip to content

Commit

Permalink
Fix userRefUID typing
Browse files Browse the repository at this point in the history
  • Loading branch information
motechFR committed Nov 7, 2024
1 parent dc7ac33 commit b9dd2bc
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const githubContributionReceiptEASSchema =
export const githubContributionReceiptSchemaName = 'Github Contribution Receipt';

export type GithubContributionReceiptAttestation = {
userRefUID: string;
userRefUID: `0x${string}`;
description: string;
url: string;
metadataUrl: string;
Expand Down Expand Up @@ -46,6 +46,8 @@ export function decodeGithubContributionReceiptAttestation(rawData: string): Git

if (key === 'value') {
acc[key] = parseInt(item.value.value as string);
} else if (key === 'userRefUID') {
acc[key] = item.value.value as `0x${string}`;
} else {
acc[key] = item.value.value as string;
}
Expand Down

0 comments on commit b9dd2bc

Please sign in to comment.