Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit e7ac7cc

Browse files
Apply suggestions from code review
Co-authored-by: Jon C <[email protected]>
1 parent 284dee9 commit e7ac7cc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

token/confidential-transfer/proof-extraction/src/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pub enum TokenProofExtractionError {
88
PedersenCommitmentMismatch,
99
#[error("Range proof length mismatch")]
1010
RangeProofLengthMismatch,
11-
#[error("Fee pparameters mismatch")]
11+
#[error("Fee parameters mismatch")]
1212
FeeParametersMismatch,
1313
#[error("Curve arithmetic failed")]
1414
CurveArithmetic,

token/confidential-transfer/proof-generation/src/transfer_with_fee.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ fn calculate_fee(transfer_amount: u64, fee_rate_basis_points: u16) -> Option<(u6
309309

310310
// Warning: Division may involve CPU opcodes that have variable execution times.
311311
// This non-constant-time execution of the fee calculation can theoretically
312-
// reveal information about the transfer amount. For transfers that invole
312+
// reveal information about the transfer amount. For transfers that involve
313313
// extremely sensitive data, additional care should be put into how the fees
314314
// are calculated.
315315
let fee = numerator

0 commit comments

Comments
 (0)