From 0a83b6bef81ce4c1d057673f8c2257f551ab216c Mon Sep 17 00:00:00 2001 From: findnature Date: Mon, 22 Apr 2024 18:01:34 +0800 Subject: [PATCH] Fix some typos in comments Signed-off-by: findnature --- src/libraries/Error.sol | 4 ++-- src/node-interface/NodeInterface.sol | 2 +- src/rollup/RollupUserLogic.sol | 4 ++-- test/foundry/ERC20Bridge.t.sol | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/libraries/Error.sol b/src/libraries/Error.sol index 0d5a2a8d..c2f5bdd8 100644 --- a/src/libraries/Error.sol +++ b/src/libraries/Error.sol @@ -32,7 +32,7 @@ error NotOrigin(); error DataTooLarge(uint256 dataLength, uint256 maxDataLength); /// @dev The provided is not a contract and was expected to be -/// @param addr The adddress in question +/// @param addr The address in question error NotContract(address addr); /// @dev The merkle proof provided was too long @@ -176,7 +176,7 @@ error NoSuchKeyset(bytes32); /// @dev Thrown when the provided address is not the designated batch poster manager error NotBatchPosterManager(address); -/// @dev Thrown when a data blob feature is attempted to be used on a chain that doesnt support it +/// @dev Thrown when a data blob feature is attempted to be used on a chain that doesn't support it error DataBlobsNotSupported(); /// @dev Thrown when an init param was supplied as empty diff --git a/src/node-interface/NodeInterface.sol b/src/node-interface/NodeInterface.sol index bba06e52..a6e6cdab 100644 --- a/src/node-interface/NodeInterface.sol +++ b/src/node-interface/NodeInterface.sol @@ -63,7 +63,7 @@ interface NodeInterface { * @notice Gets the number of L1 confirmations of the sequencer batch producing the requested L2 block * This gets the number of L1 confirmations for the input message producing the L2 block, * which happens well before the L1 rollup contract confirms the L2 block. - * Throws if block doesnt exist in the L2 chain. + * Throws if block doesn't exist in the L2 chain. * @dev Use eth_call to call. * @param blockHash The hash of the L2 block being queried * @return confirmations The number of L1 confirmations the sequencer batch has. Returns 0 if block not yet included in an L1 batch. diff --git a/src/rollup/RollupUserLogic.sol b/src/rollup/RollupUserLogic.sol index 9807f201..d0c5005e 100644 --- a/src/rollup/RollupUserLogic.sol +++ b/src/rollup/RollupUserLogic.sol @@ -235,7 +235,7 @@ abstract contract AbsRollupUserLogic is /** * @notice Refund a staker that is currently staked on or before the latest confirmed node * @dev Since a staker is initially placed in the latest confirmed node, if they don't move it - * a griefer can remove their stake. It is recomended to batch together the txs to place a stake + * a griefer can remove their stake. It is recommended to batch together the txs to place a stake * and move it to the desired node. * @param stakerAddress Address of the staker whose stake is refunded */ @@ -265,7 +265,7 @@ abstract contract AbsRollupUserLogic is } /** - * @notice Reduce the amount staked for the sender (difference between initial amount staked and target is creditted back to the sender). + * @notice Reduce the amount staked for the sender (difference between initial amount staked and target is credited back to the sender). * @param target Target amount of stake for the staker. If this is below the current minimum, it will be set to minimum instead */ function reduceDeposit(uint256 target) external onlyValidator whenNotPausedOrDeprecated { diff --git a/test/foundry/ERC20Bridge.t.sol b/test/foundry/ERC20Bridge.t.sol index fc1d2acb..30801239 100644 --- a/test/foundry/ERC20Bridge.t.sol +++ b/test/foundry/ERC20Bridge.t.sol @@ -293,7 +293,7 @@ contract ERC20BridgeTest is AbsBridgeTest { "Invalid bridge native token balance after unsuccessful extra call" ); - // vault successfully recieved native token even though extra call was unsuccessful (we didn't revert it) + // vault successfully received native token even though extra call was unsuccessful (we didn't revert it) uint256 vaultNativeTokenBalanceAfter = nativeToken.balanceOf(address(vault)); assertEq( vaultNativeTokenBalanceAfter - vaultNativeTokenBalanceBefore,