From 944e1fb29aacdbb56a9375b76ff3b6bf5e8f2ffd Mon Sep 17 00:00:00 2001 From: JohnEndson Date: Thu, 28 Mar 2024 19:13:30 +0800 Subject: [PATCH] test: fix some comments Signed-off-by: JohnEndson --- src/test/Audius.exp.sol | 4 ++-- src/test/FortressLoans.exp.sol | 2 +- src/test/PolyNetwork/utils.sol | 6 +++--- src/test/ReaperFarm.exp.sol | 2 +- src/test/XCarnival.exp.sol | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/test/Audius.exp.sol b/src/test/Audius.exp.sol index 84691ce1..2f80c68a 100644 --- a/src/test/Audius.exp.sol +++ b/src/test/Audius.exp.sol @@ -22,8 +22,8 @@ import "./interface.sol"; // UniswapV2 Router 2 : https://etherscan.io/address/0x7a250d5630b4cf539739df2c5dacb4c659f2488d#code // @NewsTrack -// Offical Announcement : https://twitter.com/AudiusProject/status/1551000725169180672 -// Offical Post-Mortem : https://blog.audius.co/article/audius-governance-takeover-post-mortem-7-23-22 +// Official Announcement : https://twitter.com/AudiusProject/status/1551000725169180672 +// Official Post-Mortem : https://blog.audius.co/article/audius-governance-takeover-post-mortem-7-23-22 // SunSec : https://twitter.com/1nf0s3cpt/status/1551050841146400768 // Abmedia News : https://abmedia.io/20220724-audius-hacked-by-mal-governance-proposal // Beosin Alert : https://twitter.com/BeosinAlert/status/1551041795735408641 diff --git a/src/test/FortressLoans.exp.sol b/src/test/FortressLoans.exp.sol index c3e856e1..05edd5d1 100644 --- a/src/test/FortressLoans.exp.sol +++ b/src/test/FortressLoans.exp.sol @@ -13,7 +13,7 @@ import "./interface.sol"; Price Feed : https://bscscan.com/address/0xaa24b64c9b44d874368b09325c6d60165c4b39f2#code*/ /* @News - Offical Announce : https://mobile.twitter.com/Fortressloans/status/1523495202115051520 + Official Announce : https://mobile.twitter.com/Fortressloans/status/1523495202115051520 PeckShield Alert Thread : https://twitter.com/PeckShieldAlert/status/1523489670323404800 Blocksec Alert Thread : https://twitter.com/BlockSecTeam/status/1523530484877209600*/ diff --git a/src/test/PolyNetwork/utils.sol b/src/test/PolyNetwork/utils.sol index ed308b40..f387473e 100644 --- a/src/test/PolyNetwork/utils.sol +++ b/src/test/PolyNetwork/utils.sol @@ -92,7 +92,7 @@ library Utils { result = sha256(abi.encodePacked(bytes1(0x01), _l, _r)); } - /* @notice Compare if two bytes are equal, which are in storage and memory, seperately + /* @notice Compare if two bytes are equal, which are in storage and memory, separately Refer from https://github.com/summa-tx/bitcoin-spv/blob/master/solidity/contracts/BytesLib.sol#L368 * @param _preBytes The bytes stored in storage * @param _postBytes The bytes stored in memory @@ -235,7 +235,7 @@ library Utils { /* @notice Check if the elements number of _signers within _keepers array is no less than _m * @param _keepers The array consists of serveral address * @param _signers Some specific addresses to be looked into - * @param _m The number requirement paramter + * @param _m The number requirement parameter * @return True means containment, false meansdo do not contain. */ @@ -473,7 +473,7 @@ library ZeroCopySource { /* @notice Read next byte as boolean type starting at offset from buff * @param buff Source bytes array * @param offset The position from where we read the boolean value - * @return The the read boolean value and new offset + * @return The read boolean value and new offset */ function NextBool(bytes memory buff, uint256 offset) internal returns (bool, uint256) { require(offset + 1 <= buff.length && offset < offset + 1, "Offset exceeds limit"); diff --git a/src/test/ReaperFarm.exp.sol b/src/test/ReaperFarm.exp.sol index a004700d..58339d1a 100644 --- a/src/test/ReaperFarm.exp.sol +++ b/src/test/ReaperFarm.exp.sol @@ -19,7 +19,7 @@ import "./interface.sol"; // Owner 5 : 0x9e6affa8a14174ca4e931a2d6b7056c41b9beeb6 // @Analysis -// Offical post-mortem : https://twitter.com/Reaper_Farm/status/1554500909740302337 +// Official post-mortem : https://twitter.com/Reaper_Farm/status/1554500909740302337 // Beosin : https://twitter.com/BeosinAlert/status/1554476940593340421 contract Attacker is Test { diff --git a/src/test/XCarnival.exp.sol b/src/test/XCarnival.exp.sol index 766c260d..42db20ed 100644 --- a/src/test/XCarnival.exp.sol +++ b/src/test/XCarnival.exp.sol @@ -17,7 +17,7 @@ import "./interface.sol"; // BAYC Contract: 0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d // @News -// Offical Announce : https://twitter.com/XCarnival_Lab/status/1541226298399653888 +// Official Announce : https://twitter.com/XCarnival_Lab/status/1541226298399653888 // PeckShield Alert Thread : https://twitter.com/peckshield/status/1541047171453034501 // Blocksec Alert Thread : https://twitter.com/BlockSecTeam/status/1541070850505723905