Skip to content

Commit

Permalink
Fix the attestation metadata content stored in IPFS (#1782)
Browse files Browse the repository at this point in the history
  • Loading branch information
leszko authored Jun 27, 2023
1 parent fe72249 commit e66a5bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/api/src/controllers/experiment/attestation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,14 @@ app.post("/", validatePost("attestation"), async (req, res) => {
return res.status(201).json(attestationMetadata);
});

function toContent(attestation: Attestation): string {
return JSON.stringify({
function toContent(attestation: Attestation) {
return {
domain: attestation.domain,
primaryType: attestation.primaryType,
message: attestation.message,
signature: attestation.signature,
signatureType: attestation.signatureType,
});
};
}

async function verifySignature(
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/schema/api-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1303,7 +1303,7 @@ components:
- content
properties:
content:
type: string
type: object
description: File content to store into IPFS
ipfs:
$ref: "#/components/schemas/ipfs-export-params"
Expand Down

0 comments on commit e66a5bb

Please sign in to comment.