Skip to content

Commit e1d204a

Browse files
committed
chore: fix a large number of spelling issues
Signed-off-by: pxwanglu <[email protected]>
1 parent 8efcdb9 commit e1d204a

File tree

15 files changed

+15
-15
lines changed

15 files changed

+15
-15
lines changed

gateway-contracts/contracts/interfaces/IPauserSet.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ interface IPauserSet {
5858
function removePauser(address account) external;
5959

6060
/**
61-
* @notice Returns wether specified account is in the set of pausers.
61+
* @notice Returns whether specified account is in the set of pausers.
6262
* @param account The address of the account.
6363
*/
6464
function isPauser(address account) external view returns (bool);

host-contracts/contracts/ACL.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ contract ACL is
524524
}
525525

526526
/**
527-
* @notice Returns wether specified account is in the set of pausers.
527+
* @notice Returns whether specified account is in the set of pausers.
528528
* @param account The address of the account.
529529
*/
530530
function isPauser(address account) external view virtual returns (bool) {

host-contracts/contracts/interfaces/IPauserSet.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ interface IPauserSet {
5858
function removePauser(address account) external;
5959

6060
/**
61-
* @notice Returns wether specified account is in the set of pausers.
61+
* @notice Returns whether specified account is in the set of pausers.
6262
* @param account The address of the account.
6363
*/
6464
function isPauser(address account) external view returns (bool);

host-contracts/examples/EncryptedERC20.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ contract EncryptedERC20 is Ownable2Step {
207207
/// @param amount The amount to transfer
208208
/// @param isTransferable Boolean indicating if the transfer is allowed
209209
function _transfer(address from, address to, euint64 amount, ebool isTransferable) internal virtual {
210-
/// @dev Add to the balance of `to` and subract from the balance of `from`.
210+
/// @dev Add to the balance of `to` and subtract from the balance of `from`.
211211
euint64 transferValue = FHE.select(isTransferable, amount, FHE.asEuint64(0));
212212
euint64 newBalanceTo = FHE.add(balances[to], transferValue);
213213
balances[to] = newBalanceTo;

host-contracts/lib/FHE.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9076,7 +9076,7 @@ library FHE {
90769076
* @dev Internal low-level function used to verify the KMS signatures.
90779077
* @notice Warning: MUST be called directly in the callback function called by the relayer.
90789078
* @notice Warning: this function never reverts, its boolean return value must be checked.
9079-
* @dev clearTexts is the abi-encoding of the list of all decrypted values assiociated to handlesList, in same order.
9079+
* @dev clearTexts is the abi-encoding of the list of all decrypted values associated to handlesList, in same order.
90809080
* @dev Only static native solidity types for clear values are supported, so clearTexts is the concatenation of all clear values appended to 32 bytes.
90819081
* @dev decryptionProof contains KMS signatures corresponding to clearTexts and associated handlesList, and needed metadata for KMS context.
90829082
**/

host-contracts/lib/Impl.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ interface IACL {
327327
function allowForDecryption(bytes32[] memory handlesList) external;
328328

329329
/**
330-
* @notice Returns wether a handle is allowed to be publicly decrypted.
330+
* @notice Returns whether a handle is allowed to be publicly decrypted.
331331
* @param handle Handle.
332332
* @return isDecryptable Whether the handle can be publicly decrypted.
333333
*/

library-solidity/ci/tests/ERC20.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ class Reencrypt(EIP712Struct):
196196

197197
print(f"\n\n======== STEP 2: MINT {initial_mint} TOKENS ========")
198198

199-
# get contract adress and send mint transaction
199+
# get contract address and send mint transaction
200200
contract_address = transaction_receipt.contractAddress
201201

202202
# create the contract and make sure we use a middleware to automatically sign calls.

library-solidity/codegen/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ function computeOperationsTestsGroupImports(operationsTestGroup: TestGroup): Typ
337337
if (importModuleNamesSet.has(k)) {
338338
imports[k] = imp[1];
339339
} else {
340-
throw new Error(`Unkown operations import module name ${k}`);
340+
throw new Error(`Unknown operations import module name ${k}`);
341341
}
342342
}
343343
} else {

library-solidity/codegen/src/templates/FHE.sol-template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ library FHE {
229229
* @dev Internal low-level function used to verify the KMS signatures.
230230
* @notice Warning: MUST be called directly in the callback function called by the relayer.
231231
* @notice Warning: this function never reverts, its boolean return value must be checked.
232-
* @dev clearTexts is the abi-encoding of the list of all decrypted values assiociated to handlesList, in same order.
232+
* @dev clearTexts is the abi-encoding of the list of all decrypted values associated to handlesList, in same order.
233233
* @dev Only static native solidity types for clear values are supported, so clearTexts is the concatenation of all clear values appended to 32 bytes.
234234
* @dev decryptionProof contains KMS signatures corresponding to clearTexts and associated handlesList, and needed metadata for KMS context.
235235
**/

library-solidity/codegen/src/templates/Impl.sol-template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ interface IACL {
147147
function allowForDecryption(bytes32[] memory handlesList) external;
148148

149149
/**
150-
* @notice Returns wether a handle is allowed to be publicly decrypted.
150+
* @notice Returns whether a handle is allowed to be publicly decrypted.
151151
* @param handle Handle.
152152
* @return isDecryptable Whether the handle can be publicly decrypted.
153153
*/

0 commit comments

Comments
 (0)