From 185df132d0f4f3476085dbced5f93f6e2899ed64 Mon Sep 17 00:00:00 2001 From: liangmulu Date: Wed, 9 Jul 2025 14:21:03 +0800 Subject: [PATCH] chore: fix some minor issues in comments Signed-off-by: liangmulu --- .../solidstate-solidity/contracts/cryptography/EIP712.sol | 2 +- .../solidstate-solidity/contracts/interfaces/IERC1155.sol | 2 +- .../proxy/diamond/writable/DiamondWritableInternal.sol | 4 ++-- .../contracts/token/ERC20/permit/ERC20PermitInternal.sol | 2 +- smart-wallets/src/extensions/AssetVault.sol | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/plume/src/lib/vendor/solidstate-solidity/contracts/cryptography/EIP712.sol b/plume/src/lib/vendor/solidstate-solidity/contracts/cryptography/EIP712.sol index 6b5f5cad..71423572 100644 --- a/plume/src/lib/vendor/solidstate-solidity/contracts/cryptography/EIP712.sol +++ b/plume/src/lib/vendor/solidstate-solidity/contracts/cryptography/EIP712.sol @@ -24,7 +24,7 @@ library EIP712 { bytes32 nameHash, bytes32 versionHash ) internal view returns (bytes32 domainSeparator) { - // execute EIP-712 hashStruct procedure using assembly, equavalent to: + // execute EIP-712 hashStruct procedure using assembly, equivalent to: // // domainSeparator = keccak256( // abi.encode( diff --git a/plume/src/lib/vendor/solidstate-solidity/contracts/interfaces/IERC1155.sol b/plume/src/lib/vendor/solidstate-solidity/contracts/interfaces/IERC1155.sol index 3af56485..3a992cd3 100644 --- a/plume/src/lib/vendor/solidstate-solidity/contracts/interfaces/IERC1155.sol +++ b/plume/src/lib/vendor/solidstate-solidity/contracts/interfaces/IERC1155.sol @@ -23,7 +23,7 @@ interface IERC1155 is IERC1155Internal, IERC165 { /** * @notice query the balances of given tokens held by given addresses - * @param accounts addresss to query + * @param accounts address to query * @param ids tokens to query * @return token balances */ diff --git a/plume/src/lib/vendor/solidstate-solidity/contracts/proxy/diamond/writable/DiamondWritableInternal.sol b/plume/src/lib/vendor/solidstate-solidity/contracts/proxy/diamond/writable/DiamondWritableInternal.sol index f89a326e..8bc7ba10 100644 --- a/plume/src/lib/vendor/solidstate-solidity/contracts/proxy/diamond/writable/DiamondWritableInternal.sol +++ b/plume/src/lib/vendor/solidstate-solidity/contracts/proxy/diamond/writable/DiamondWritableInternal.sol @@ -90,7 +90,7 @@ abstract contract DiamondWritableInternal is IDiamondWritableInternal { * @notice add to the diamond a set of selectors associated with a particular facet * @dev selectors are added one-by-one to lastSlug, which is written to storage and updated to represent the subsequent slug when full * @dev lastSlug may be initialized with "dirty" higher-index bits, but these are ignored because they are out of range - * @dev selectorCount and lastSlug are modified in place and returned to avoid reundant storage access + * @dev selectorCount and lastSlug are modified in place and returned to avoid redundant storage access * @param l storage pointer to the DiamondBaseStorage Layout struct * @param facetCut structured data representing facet address and selectors to add * @param selectorCount total number of selectors registered on the diamond proxy @@ -150,7 +150,7 @@ abstract contract DiamondWritableInternal is IDiamondWritableInternal { * @notice remove from the diamond a set of selectors associated with a particular facet * @dev selectors are removed one-by-one from lastSlug, which is updated to represent the preceeding slug when empty * @dev lastSlug is not updated in storage when modified or removed, leaving "dirty" higher-index bits, but these are ignored because they are out of range - * @dev selectorCount and lastSlug are modified in place and returned to avoid reundant storage access + * @dev selectorCount and lastSlug are modified in place and returned to avoid redundant storage access * @param l storage pointer to the DiamondBaseStorage Layout struct * @param facetCut structured data representing facet address and selectors to remove * @param selectorCount total number of selectors registered on the diamond proxy diff --git a/plume/src/lib/vendor/solidstate-solidity/contracts/token/ERC20/permit/ERC20PermitInternal.sol b/plume/src/lib/vendor/solidstate-solidity/contracts/token/ERC20/permit/ERC20PermitInternal.sol index f7ac96d5..b8cde0f0 100644 --- a/plume/src/lib/vendor/solidstate-solidity/contracts/token/ERC20/permit/ERC20PermitInternal.sol +++ b/plume/src/lib/vendor/solidstate-solidity/contracts/token/ERC20/permit/ERC20PermitInternal.sol @@ -85,7 +85,7 @@ abstract contract ERC20PermitInternal is ERC20PermitStorage.Layout storage l = ERC20PermitStorage.layout(); - // execute EIP-712 hashStruct procedure using assembly, equavalent to: + // execute EIP-712 hashStruct procedure using assembly, equivalent to: // // bytes32 structHash = keccak256( // abi.encode( diff --git a/smart-wallets/src/extensions/AssetVault.sol b/smart-wallets/src/extensions/AssetVault.sol index 5fc96fee..9c9f555b 100644 --- a/smart-wallets/src/extensions/AssetVault.sol +++ b/smart-wallets/src/extensions/AssetVault.sol @@ -378,7 +378,7 @@ contract AssetVault is WalletUtils, IAssetVault { * If there are too many yield distributions to process, the function will stop to avoid * reaching the gas limit, and the beneficiary must call the function again to renounce more. * @param assetToken AssetToken from which the yield is to be redistributed - * @param amount Amount of AssetTokens to renounce from from the yield distribution + * @param amount Amount of AssetTokens to renounce from the yield distribution * @param expiration Timestamp at which the yield expires */ function renounceYieldDistribution(