diff --git a/src/libraries/Error.sol b/src/libraries/Error.sol index 2eb496e7..a5f41945 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 @@ -173,7 +173,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 7633b287..dc8522fa 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 95df077b..d5b30ffb 100644 --- a/src/rollup/RollupUserLogic.sol +++ b/src/rollup/RollupUserLogic.sol @@ -259,7 +259,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 */ @@ -289,7 +289,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 1d2d82aa..2abe0570 100644 --- a/test/foundry/ERC20Bridge.t.sol +++ b/test/foundry/ERC20Bridge.t.sol @@ -323,7 +323,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,