From df310729051ba69d0d6bb0f0284a96ff484c34ad Mon Sep 17 00:00:00 2001 From: renshuncui Date: Thu, 13 Feb 2025 22:42:57 +0800 Subject: [PATCH] chore: fix some typos Signed-off-by: renshuncui --- script/deployEIP6551.s.sol | 2 +- script/deployManagedAccounts.s.sol | 2 +- script/deployUpgradeableAccounts.s.sol | 2 +- script/upgradeManagedAccounts.s.sol | 2 +- test/foundry/core/managed/ManagedOpenfortAccountTest.t.sol | 4 ++-- .../core/upgradeable/UpgradeableOpenfortAccountTest.t.sol | 2 +- test/foundry/paymaster/OpenfortPaymasterV2Test.t.sol | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/script/deployEIP6551.s.sol b/script/deployEIP6551.s.sol index 8ba01a1..797042a 100644 --- a/script/deployEIP6551.s.sol +++ b/script/deployEIP6551.s.sol @@ -18,7 +18,7 @@ contract ERC6551OpenfortDeploy is Script { bytes32 versionSalt = vm.envBytes32("VERSION_SALT"); vm.startBroadcast(deployPrivKey); - // Create an acccount to serve as implementation + // Create an account to serve as implementation ERC6551OpenfortAccount erc6551OpenfortAccount = new ERC6551OpenfortAccount{salt: versionSalt}(); vm.stopBroadcast(); diff --git a/script/deployManagedAccounts.s.sol b/script/deployManagedAccounts.s.sol index 4297e19..3d53829 100644 --- a/script/deployManagedAccounts.s.sol +++ b/script/deployManagedAccounts.s.sol @@ -27,7 +27,7 @@ contract ManagedOpenfortDeploy is Script, CheckOrDeployEntryPoint { entryPoint = checkOrDeployEntryPoint(); vm.startBroadcast(deployPrivKey); - // Create an acccount to serve as implementation + // Create an account to serve as implementation managedOpenfortAccountImpl = new ManagedOpenfortAccount{salt: versionSalt}(); // deploy account factory (beacon) openfortFactory = new ManagedOpenfortFactory{salt: versionSalt}( diff --git a/script/deployUpgradeableAccounts.s.sol b/script/deployUpgradeableAccounts.s.sol index ad9b164..a315baf 100644 --- a/script/deployUpgradeableAccounts.s.sol +++ b/script/deployUpgradeableAccounts.s.sol @@ -35,7 +35,7 @@ contract UpgradeableOpenfortDeploy is Script, CheckOrDeployEntryPoint { // deploy upgradeable account implementation vm.expectEmit(true, true, false, true); emit AccountImplementationDeployed(CREATE2_DEPLOYER); - // Create an acccount to serve as implementation + // Create an account to serve as implementation upgradeableOpenfortAccountImpl = new UpgradeableOpenfortAccount{salt: versionSalt}(); // deploy account factory openfortFactory = new UpgradeableOpenfortFactory{salt: versionSalt}( diff --git a/script/upgradeManagedAccounts.s.sol b/script/upgradeManagedAccounts.s.sol index 57cff52..6aedc2a 100644 --- a/script/upgradeManagedAccounts.s.sol +++ b/script/upgradeManagedAccounts.s.sol @@ -29,7 +29,7 @@ contract ManagedOpenfortUpgrade is Script, CheckOrDeployEntryPoint { console.log("Example account address: ", exampleAccountAddress); vm.startBroadcast(deployPrivKey); - // Create an acccount to serve as new implementation + // Create an account to serve as new implementation managedOpenfortAccountImpl = new ManagedOpenfortAccount{salt: versionSalt}(); // Update the account implementation diff --git a/test/foundry/core/managed/ManagedOpenfortAccountTest.t.sol b/test/foundry/core/managed/ManagedOpenfortAccountTest.t.sol index 9c038f3..bd4e659 100644 --- a/test/foundry/core/managed/ManagedOpenfortAccountTest.t.sol +++ b/test/foundry/core/managed/ManagedOpenfortAccountTest.t.sol @@ -1026,7 +1026,7 @@ contract ManagedOpenfortAccountTest is OpenfortBaseTest { function testUpgradeBeacon() public { address newEntryPoint = 0xDeaDbeefdEAdbeefdEadbEEFdeadbeEFdEaDbeeF; - // Check addressess + // Check addresses assertEq(address(managedOpenfortAccountImpl.entryPoint()), address(entryPoint)); // Try to use the old and new implementation before upgrade (should always behave with current values) @@ -2168,7 +2168,7 @@ contract ManagedOpenfortAccountTest is OpenfortBaseTest { /* * Case: User added 2 guardians and keeps the default (Openfort) * The 2 added guardians (friends) are used to recover the account and transfer - * the ownership to beneficiary. Faild due to unsorted signatures + * the ownership to beneficiary. Failed due to unsorted signatures * @notice Remember that signatures need to be ordered by the guardian's address. */ function test3GuardiansUnorderedCompleteRecovery() public { diff --git a/test/foundry/core/upgradeable/UpgradeableOpenfortAccountTest.t.sol b/test/foundry/core/upgradeable/UpgradeableOpenfortAccountTest.t.sol index 5f0ea18..ab314db 100644 --- a/test/foundry/core/upgradeable/UpgradeableOpenfortAccountTest.t.sol +++ b/test/foundry/core/upgradeable/UpgradeableOpenfortAccountTest.t.sol @@ -2492,7 +2492,7 @@ contract UpgradeableOpenfortAccountTest is OpenfortBaseTest { /* * Case: User added 2 guardians and keeps the default (Openfort) * The 2 added guardians (friends) are used to recover the account and transfer - * the ownership to beneficiary. Faild due to unsorted signatures + * the ownership to beneficiary. Failed due to unsorted signatures * @notice Remember that signatures need to be ordered by the guardian's address. */ function test3GuardiansUnorderedCompleteRecovery() public { diff --git a/test/foundry/paymaster/OpenfortPaymasterV2Test.t.sol b/test/foundry/paymaster/OpenfortPaymasterV2Test.t.sol index 1fd7912..3e84cee 100644 --- a/test/foundry/paymaster/OpenfortPaymasterV2Test.t.sol +++ b/test/foundry/paymaster/OpenfortPaymasterV2Test.t.sol @@ -292,7 +292,7 @@ contract OpenfortPaymasterV2Test is OpenfortBaseTest { vm.prank(paymasterAdmin); openfortPaymaster.unlockStake(); - // The owner trying to unlock fails because it has not passed enought time + // The owner trying to unlock fails because it has not passed enough time vm.prank(paymasterAdmin); vm.expectRevert(); openfortPaymaster.withdrawStake(payable(paymasterAdmin));