Skip to content

Commit

Permalink
fix: Set 'claim_is_creator' to true for capture cam uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
sultanmyrza committed Nov 28, 2023
1 parent bba6a65 commit 9c05029
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,10 @@ async function buildFormDataToCreateAsset(proof: Proof) {
formData.set('meta', JSON.stringify(info));
formData.set('signed_metadata', serializedSortedProofMetadata);
formData.set('signature', JSON.stringify(getOldSignatures(proof)));
// The default value for 'claim_is_creator' is set to false.
// However, for captures uploaded using the capture cam,
// this value should be specifically set to true.
formData.set('claim_is_creator', 'true');

const fileBase64 = Object.keys(await proof.getAssets())[0];
const mimeType = Object.values(proof.indexedAssets)[0].mimeType;
Expand Down

0 comments on commit 9c05029

Please sign in to comment.