From 6df47bf9950ff3a3d358d04a73a4f6a6be6c96e7 Mon Sep 17 00:00:00 2001 From: findnature Date: Mon, 22 Apr 2024 18:05:34 +0800 Subject: [PATCH] Fix some typos in comments Signed-off-by: findnature --- contracts/mocks/fee-updater/SocketSimulator.sol | 2 +- contracts/socket/SocketDst.sol | 2 +- .../switchboard/default-switchboards/FastSwitchboard.sol | 4 ++-- scripts/admin/tripCommon.ts | 2 +- scripts/admin/tripGlobal.ts | 4 ++-- scripts/admin/untripPath.ts | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/contracts/mocks/fee-updater/SocketSimulator.sol b/contracts/mocks/fee-updater/SocketSimulator.sol index 2c628cc4e..6f899e433 100644 --- a/contracts/mocks/fee-updater/SocketSimulator.sol +++ b/contracts/mocks/fee-updater/SocketSimulator.sol @@ -303,7 +303,7 @@ contract SocketSimulator is AccessControl { PlugConfig memory plugConfig_, bytes memory decapacitorProof_ ) internal { - // NOTE: is the the first un-trusted call in the system, another one is Plug.inbound + // NOTE: is the first un-trusted call in the system, another one is Plug.inbound if ( !ISwitchboard(plugConfig_.inboundSwitchboard__).allowPacket( packetRoot_, diff --git a/contracts/socket/SocketDst.sol b/contracts/socket/SocketDst.sol index 58517e76d..1319a7eb0 100644 --- a/contracts/socket/SocketDst.sol +++ b/contracts/socket/SocketDst.sol @@ -247,7 +247,7 @@ abstract contract SocketDst is SocketBase { PlugConfig memory plugConfig_, bytes memory decapacitorProof_ ) internal { - // NOTE: is the the first un-trusted call in the system, another one is Plug.inbound + // NOTE: is the first un-trusted call in the system, another one is Plug.inbound if ( !ISwitchboard(plugConfig_.inboundSwitchboard__).allowPacket( packetRoot_, diff --git a/contracts/switchboard/default-switchboards/FastSwitchboard.sol b/contracts/switchboard/default-switchboards/FastSwitchboard.sol index cb6e62365..008365e10 100644 --- a/contracts/switchboard/default-switchboards/FastSwitchboard.sol +++ b/contracts/switchboard/default-switchboards/FastSwitchboard.sol @@ -48,10 +48,10 @@ contract FastSwitchboard is SwitchboardBase { error AlreadyAttested(); // Error emitted if grant/revoke is tried for watcher role using generic grant/revoke functions. - // Watcher role is handled seperately bacause totalWatchers and fees need to be updated along with role change. + // Watcher role is handled seperately because totalWatchers and fees need to be updated along with role change. error InvalidRole(); - // Error emitted while attesting if root is zero or it doesnt match the root on socket for given proposal + // Error emitted while attesting if root is zero or it doesn't match the root on socket for given proposal // helps in cases where attest tx has been sent but root changes on socket due to reorgs. error InvalidRoot(); diff --git a/scripts/admin/tripCommon.ts b/scripts/admin/tripCommon.ts index 4d753523d..0cea7ae5c 100644 --- a/scripts/admin/tripCommon.ts +++ b/scripts/admin/tripCommon.ts @@ -47,7 +47,7 @@ export type SummaryObj = { * --testnets Run for testnets. * Default is false. * - * --integration Run for sepcified integration type. Can be fast or optimistic. + * --integration Run for specified integration type. Can be fast or optimistic. * Default is fast. */ diff --git a/scripts/admin/tripGlobal.ts b/scripts/admin/tripGlobal.ts index 90ce1764a..c0ffee194 100644 --- a/scripts/admin/tripGlobal.ts +++ b/scripts/admin/tripGlobal.ts @@ -44,13 +44,13 @@ import { Contract } from "ethers"; * --testnets Run for testnets. * Default is false. * - * --integration Run for sepcified integration type. Can be fast or optimistic. + * --integration Run for specified integration type. Can be fast or optimistic. * Default is fast. */ const main = async () => { if (trip && untrip) { - console.log("both trip and untrip flags cant be passed. pass one of them."); + console.log("both trip and untrip flags can't be passed. pass one of them."); return; } if (!trip && !untrip) { diff --git a/scripts/admin/untripPath.ts b/scripts/admin/untripPath.ts index ecc338f87..b805f079b 100644 --- a/scripts/admin/untripPath.ts +++ b/scripts/admin/untripPath.ts @@ -33,7 +33,7 @@ import { * --testnets Run for testnets. * Default is false. * - * --integration Run for sepcified integration type. Can be fast or optimistic. + * --integration Run for specified integration type. Can be fast or optimistic. * Default is fast. */