Skip to content

Commit

Permalink
feat(ref-imp): #781 - address pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacJChen committed Oct 9, 2020
1 parent 072d436 commit 9059aa7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/core/versions/latest/AnchorFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,12 @@ export default class AnchorFile {
}

const createOperations = createOperationArray.map(operation => {
const suffixData = { delta_hash: operation.suffixData.deltaHash, recovery_commitment: operation.suffixData.recoveryCommitment, type: operation.suffixData.type };
if (suffixData.type === undefined) {
delete suffixData.type;
};
return {
suffix_data: { delta_hash: operation.suffixData.deltaHash, recovery_commitment: operation.suffixData.recoveryCommitment }
suffix_data: suffixData
};
});

Expand Down

0 comments on commit 9059aa7

Please sign in to comment.