Skip to content

Commit

Permalink
Small corrections on smart contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
criadoperez authored and QEDK committed Aug 10, 2023
1 parent 69b5c33 commit 083ba59
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions contracts/common/BN256G2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ contract BN256G2 is IBN256G2 {
// }

/**
* @notice FQ2-FQ2 substraction operation
* @notice FQ2-FQ2 subtraction operation
* @param xx First FQ2 operands first coordinate
* @param xy First FQ2 operands second coordinate
* @param yx Second FQ2 operands first coordinate
Expand Down Expand Up @@ -227,7 +227,7 @@ contract BN256G2 is IBN256G2 {

/**
* @notice Calculates the modular inverse of a over n
* @param a The operand to calcualte the inverse of
* @param a The operand to calculate the inverse of
* @param n The modulus
* @return result Inv(a)modn
**/
Expand Down
2 changes: 1 addition & 1 deletion contracts/lib/ModExp.sol
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ library ModexpInverse {
*/
library ModexpSqrt {
/**
* @notice computes square root by modular exponentation
* @notice computes square root by modular exponentiation
* @dev Compute $input^{(N + 1) / 4} mod N$ using Addition Chain method
* @param t6 the number to derive the square root of
* @return t0 the square root
Expand Down
2 changes: 1 addition & 1 deletion test/forge/root/staking/CustomSupernetManager.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ abstract contract Whitelisted is Registered {
function toHexString(address addr) public pure returns (string memory) {
bytes memory buffer = abi.encodePacked(addr);

// Fixed buffer size for hexadecimal convertion
// Fixed buffer size for hexadecimal conversion
bytes memory converted = new bytes(buffer.length * 2);

bytes memory _base = "0123456789abcdef";
Expand Down

0 comments on commit 083ba59

Please sign in to comment.