From d8d3db98ad7166a32c381ecbe10e2bf5254f980d Mon Sep 17 00:00:00 2001 From: xiaolou86 <20718693+xiaolou86@users.noreply.github.com> Date: Tue, 24 Oct 2023 11:16:28 +0800 Subject: [PATCH] test: fix typos --- .../approveCurrencyForListing/approveCurrencyForListing.tree | 2 +- src/test/smart-wallet/AccountVulnPOC.t.sol | 2 +- src/test/staking/TokenStake.t.sol | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/marketplace/direct-listings/approveCurrencyForListing/approveCurrencyForListing.tree b/src/test/marketplace/direct-listings/approveCurrencyForListing/approveCurrencyForListing.tree index da7687454..1c7912edc 100644 --- a/src/test/marketplace/direct-listings/approveCurrencyForListing/approveCurrencyForListing.tree +++ b/src/test/marketplace/direct-listings/approveCurrencyForListing/approveCurrencyForListing.tree @@ -12,7 +12,7 @@ function approveCurrencyForListing( ├── when approving different price for listed currency │ └── it should revert ✅ └── when not approving different price for listed currency - ├── when prive to approve for curreny is already approved + ├── when prive to approve for currency is already approved │ └── it should revert ✅ └── when approving a new price for currency ✅ ├── it should update the approved price for currency diff --git a/src/test/smart-wallet/AccountVulnPOC.t.sol b/src/test/smart-wallet/AccountVulnPOC.t.sol index 4de05daf2..978fecd56 100644 --- a/src/test/smart-wallet/AccountVulnPOC.t.sol +++ b/src/test/smart-wallet/AccountVulnPOC.t.sol @@ -43,7 +43,7 @@ contract Number { if (owner.code.length == 0) { // Signature verification by ECDSA } else { - // Signature verfication by EIP1271 + // Signature verification by EIP1271 bytes32 digest = keccak256(abi.encode(newNum)); require( EIP1271Verifier(owner).isValidSignature(digest, signature) == GPv2EIP1271.MAGICVALUE, diff --git a/src/test/staking/TokenStake.t.sol b/src/test/staking/TokenStake.t.sol index a78e5e7d6..4cbed5fc8 100644 --- a/src/test/staking/TokenStake.t.sol +++ b/src/test/staking/TokenStake.t.sol @@ -860,7 +860,7 @@ contract Macro_TokenStake_Tax is BaseTest { // vm.stopPrank(); // } - // // Staked amount still reamins unchanged for stakerOne + // // Staked amount still remains unchanged for stakerOne // (stakingTokenAmount, ) = stakeContract.getStakeInfo(stakerOne); // assertEq(stakingTokenAmount, 100 ether);