We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ac526e commit 44b1aedCopy full SHA for 44b1aed
src/services/attestation.service.ts
@@ -71,16 +71,14 @@ export class AttestationService {
71
try {
72
const { collection: collectionPublicKey, address: userPublicKey } = body;
73
74
- // const asset = await this.assetService.get(
75
- // userPublicKey,
76
- // collectionPublicKey,
77
- // );
78
- //
79
- // const score =
80
- // +asset.attributes.attributeList.find((i) => i.key === 'score')?.value ||
81
- // 0;
82
-
83
- const score = 1000;
+ const asset = await this.assetService.get(
+ userPublicKey,
+ collectionPublicKey,
+ );
+
+ const score =
+ +asset.attributes.attributeList.find((i) => i.key === 'score')?.value ||
+ 0;
84
85
const umi = this.umiService.getUmi(this.adminPrivateKey);
86
0 commit comments