removed the type check when accessing h_age_com

This commit is contained in:
Sebastian 2022-07-21 10:32:30 -03:00
parent fd60edf475
commit 84634a4ab4
No known key found for this signature in database
GPG Key ID: BE4FF68352439FC1

View File

@ -1048,7 +1048,7 @@ export const nativeCryptoR: TalerCryptoInterfaceR = {
s.minimum_age_sig = minimumAgeSig;
s.age_commitment = depositInfo.ageCommitmentProof?.commitment.publicKeys;
} else if (depositInfo.ageCommitmentProof) {
s.h_age_commitment = hAgeCommitment;
(s as any).h_age_commitment = hAgeCommitment;
}
return s;