Skip to content

Commit

Permalink
Merge pull request #1142 from givepraise/fix/attest-bugs
Browse files Browse the repository at this point in the history
Fix/attest bugs
  • Loading branch information
kristoferlund authored Sep 25, 2023
2 parents 022e8e6 + 2fdc189 commit f944fc4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/frontend/src/model/eas/eas.constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const ATTESTATION_SCHEMA_UID =
'0x1c622d3fdb24759ed71266b218c4750ad54549a7612451851f3b0432ce167e68';

export const ATTESTATION_SCHEMA =
'string username,string period,uint16 received_score,uint16 given_score,bool top_10_receiver,bool top_50_receiver,bool top_100_receiver,bool top_10_giver,bool top_50_giver,bool top_100_giver';
'string period,string username,uint16 received_score,uint16 given_score,bool top_10_receiver,bool top_50_receiver,bool top_100_receiver,bool top_10_giver,bool top_50_giver,bool top_100_giver';

export const ATTESTATION_REPORT_MANIFEST_URL =
'https://raw.githubusercontent.com/givepraise/reports/main/reports/attestations/manifest.json';
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,16 @@ export function CreateAttestationsDialog({
const csvObjects: Attestation[] = [];
for (const attestation of attestationReportData.rows) {
csvObjects.push({
username: attestation.users_username,
period: periodId,
received_score: attestation.total_received_praise_score,
given_score: attestation.total_given_praise_score,
top_10_receiver: attestation.top_10_receiver,
top_50_receiver: attestation.top_50_receiver,
top_100_receiver: attestation.top_100_receiver,
top_10_giver: attestation.top_10_giver,
top_50_giver: attestation.top_50_giver,
top_100_giver: attestation.top_100_giver,
username: attestation.users_username,
received_score: attestation.total_received_praise_score.toString(),
given_score: attestation.total_given_praise_score.toString(),
top_10_receiver: attestation.top_10_receiver.toString(),
top_50_receiver: attestation.top_50_receiver.toString(),
top_100_receiver: attestation.top_100_receiver.toString(),
top_10_giver: attestation.top_10_giver.toString(),
top_50_giver: attestation.top_50_giver.toString(),
top_100_giver: attestation.top_100_giver.toString(),
recipient: attestation.users_identityEthAddress,
});
}
Expand Down

0 comments on commit f944fc4

Please sign in to comment.