diff --git a/packages/hebao_v1/contracts/modules/base/BaseModule.sol b/packages/hebao_v1/contracts/modules/base/BaseModule.sol index 6732c3a86..242c80afc 100644 --- a/packages/hebao_v1/contracts/modules/base/BaseModule.sol +++ b/packages/hebao_v1/contracts/modules/base/BaseModule.sol @@ -74,7 +74,7 @@ abstract contract BaseModule is Module feeCollector = _controller.feeCollector(); } - /// @dev This method will cause an re-entry to the same module contract. + /// @dev This method will cause a re-entry to the same module contract. function activate() external override @@ -85,7 +85,7 @@ abstract contract BaseModule is Module emit Activated(wallet); } - /// @dev This method will cause an re-entry to the same module contract. + /// @dev This method will cause a re-entry to the same module contract. function deactivate() external override diff --git a/packages/hebao_v1/contracts/modules/core/ForwarderModule.sol b/packages/hebao_v1/contracts/modules/core/ForwarderModule.sol index 57fc82981..3cf364e44 100644 --- a/packages/hebao_v1/contracts/modules/core/ForwarderModule.sol +++ b/packages/hebao_v1/contracts/modules/core/ForwarderModule.sol @@ -183,7 +183,7 @@ abstract contract ForwarderModule is SecurityModule 2300; // 2*SLOAD+1*CALL = 2*800+1*700=2300 if (metaTx.gasToken == address(0)) { - gasUsed -= 15000; // diff between an regular ERC20 transfer and an ETH send + gasUsed -= 15000; // diff between a regular ERC20 transfer and an ETH send } uint gasToReimburse = gasUsed <= metaTx.gasLimit ? gasUsed : metaTx.gasLimit; diff --git a/packages/hebao_v1/legacy/version1.0/contracts/core/BaseModule.sol b/packages/hebao_v1/legacy/version1.0/contracts/core/BaseModule.sol index 452aeee1d..5c76c138c 100644 --- a/packages/hebao_v1/legacy/version1.0/contracts/core/BaseModule.sol +++ b/packages/hebao_v1/legacy/version1.0/contracts/core/BaseModule.sol @@ -72,7 +72,7 @@ contract BaseModule is ReentrancyGuard, Module Wallet(wallet).addModule(module); } - /// @dev This method will cause an re-entry to the same module contract. + /// @dev This method will cause a re-entry to the same module contract. function activate() external override @@ -83,7 +83,7 @@ contract BaseModule is ReentrancyGuard, Module emit Activated(wallet); } - /// @dev This method will cause an re-entry to the same module contract. + /// @dev This method will cause a re-entry to the same module contract. function deactivate() external override diff --git a/packages/hebao_v2/contracts/base/WalletFactory.sol b/packages/hebao_v2/contracts/base/WalletFactory.sol index c980af2eb..732bef037 100644 --- a/packages/hebao_v2/contracts/base/WalletFactory.sol +++ b/packages/hebao_v2/contracts/base/WalletFactory.sol @@ -75,7 +75,7 @@ contract WalletFactory is WalletDeploymentLib, Ownable, AddressSet addOperatorInternal(operator); } - /// @dev Removes a operator. + /// @dev Removes an operator. /// @param operator The operator to remove. function removeOperator(address operator) public diff --git a/packages/hebao_v3/contracts/base/WalletFactory.sol b/packages/hebao_v3/contracts/base/WalletFactory.sol index 98e91f19b..aba6339d4 100644 --- a/packages/hebao_v3/contracts/base/WalletFactory.sol +++ b/packages/hebao_v3/contracts/base/WalletFactory.sol @@ -57,7 +57,7 @@ contract WalletFactory is WalletDeploymentLib, Ownable, AddressSet { addOperatorInternal(operator); } - /// @dev Removes a operator. + /// @dev Removes an operator. /// @param operator The operator to remove. function removeOperator(address operator) public onlyOwner { removeAddressFromSet(OPERATOR, operator); diff --git a/packages/hebao_v3/test/account-abstraction/gnosis.test.ts b/packages/hebao_v3/test/account-abstraction/gnosis.test.ts index 6306f40a9..53001f933 100644 --- a/packages/hebao_v3/test/account-abstraction/gnosis.test.ts +++ b/packages/hebao_v3/test/account-abstraction/gnosis.test.ts @@ -327,7 +327,7 @@ describe('Gnosis Proxy', function () { '0x1626ba7e' ) - // make an sig invalid + // make a sig invalid const badWallet = ethers.Wallet.createRandom() const badSig = await badWallet.signMessage(dataHash) expect( diff --git a/packages/hebao_v3/test/inheritor.test.ts b/packages/hebao_v3/test/inheritor.test.ts index ff5e45a59..f28b5d46d 100644 --- a/packages/hebao_v3/test/inheritor.test.ts +++ b/packages/hebao_v3/test/inheritor.test.ts @@ -208,7 +208,7 @@ describe('inheritor test', () => { ).to.be.revertedWith('TOO_EARLY') }) - it('inherit with a owner in guardians group', async () => { + it('inherit with an owner in guardians group', async () => { const test = async (removeGuardians: boolean): Promise => { const { smartWallet, create2, entrypoint, sendUserOp } = await loadFixture(fixture) diff --git a/packages/loopring_v1/contracts/LoopringProtocol.sol b/packages/loopring_v1/contracts/LoopringProtocol.sol index f89352486..da0a6b094 100644 --- a/packages/loopring_v1/contracts/LoopringProtocol.sol +++ b/packages/loopring_v1/contracts/LoopringProtocol.sol @@ -53,13 +53,13 @@ contract LoopringProtocol { uint _cutoff ); - /// @dev Cancel a order. cancel amount(amountS or amountB) can be specified + /// @dev Cancel an order. cancel amount(amountS or amountB) can be specified /// in orderValues. /// @param addresses owner, tokenS, tokenB, wallet, authAddr /// @param orderValues amountS, amountB, validSince (second), /// validUntil (second), lrcFee, and cancelAmount. /// @param buyNoMoreThanAmountB - - /// This indicates when a order should be considered + /// This indicates when an order should be considered /// as 'completely filled'. /// @param marginSplitPercentage - /// Percentage of margin split to share with miner. @@ -130,7 +130,7 @@ contract LoopringProtocol { /// AuthAddr, Wallet, RingR, RingS, RingV. /// * Fee selections: Bits to indicate fee selections. /// `1` represents margin split and `0` represents LRC as fee. - /// * BuyNoMoreThanAmountB: This indicates when a order should + /// * BuyNoMoreThanAmountB: This indicates when an order should /// be considered as 'completely filled'. function submitRing( bytes data