diff --git a/src/libData/AccountData/TxnOrderVerifier.h b/src/libData/AccountData/TxnOrderVerifier.h index 16efc59fbc..3c3578f666 100644 --- a/src/libData/AccountData/TxnOrderVerifier.h +++ b/src/libData/AccountData/TxnOrderVerifier.h @@ -59,7 +59,7 @@ bool VerifyTxnOrderWTolerance(const std::vector& expectedTxns, // 1 3 2 4 5 6 7 8 10, the expected order is 0 1 2 3 4 5 6 7 8 9 10 11 12 // when it comes to 9, which is out of the 20% of the size of the // received order(2) + sizeof matchedIndexes(1), discard when it comes to - // 3, which is in the the range (2 + sizeof{0,1}) = 4, accept finally the + // 3, which is in the range (2 + sizeof{0,1}) = 4, accept finally the // indexed items are 0 1 3 4 5 6 7 8 10, size(9), which is more than 80% // of the size in the expecting order (12*0.8 = 9), thus return true if // the expectig order is 0 1 2 3 4 5 6 7 8 9 10 11 12 13, then the min diff --git a/src/libDirectoryService/DirectoryService.cpp b/src/libDirectoryService/DirectoryService.cpp index 43ead38d86..5aff6df227 100644 --- a/src/libDirectoryService/DirectoryService.cpp +++ b/src/libDirectoryService/DirectoryService.cpp @@ -827,7 +827,7 @@ void DirectoryService::StartNewDSEpochConsensus(bool isRejoin) { } // now that we already run DSBlock Consensus, lets clear the buffered pow // solutions. why not clear it at start of new ds epoch - becoz sometimes - // node is too late to start new ds epoch and and it already receives pow + // node is too late to start new ds epoch and it already receives pow // solution for next ds epoch. so we buffer them instead. { lock_guard g(m_mutexPowSolution); diff --git a/tests/EvmAcceptanceTests/README.md b/tests/EvmAcceptanceTests/README.md index 3c04961a67..7912e60b01 100644 --- a/tests/EvmAcceptanceTests/README.md +++ b/tests/EvmAcceptanceTests/README.md @@ -62,7 +62,7 @@ More faster but with fewer test cases. ## A few simple rules before start -1. Please prefer ethers.js library to web3.js. Our default library to use throughout the the code is **ethers.js**. +1. Please prefer ethers.js library to web3.js. Our default library to use throughout the code is **ethers.js**. 2. Please use [typescript](./Typescript.md). Javascript is not used anymore in this test suite. You can learn more about typescript [here](./Typescript.md). 3. Please don't add commented tests. You can't add disabled tests as well, unless you create a ticket for it. diff --git a/tests/EvmAcceptanceTests/contracts/scilla/FungibleToken.scilla b/tests/EvmAcceptanceTests/contracts/scilla/FungibleToken.scilla index d38f22c0da..491613734b 100644 --- a/tests/EvmAcceptanceTests/contracts/scilla/FungibleToken.scilla +++ b/tests/EvmAcceptanceTests/contracts/scilla/FungibleToken.scilla @@ -96,10 +96,10 @@ procedure AuthorizedMoveIfSufficientBalance(from: ByStr20, to: ByStr20, amount: can_do = uint128_le amount bal; match can_do with | True => - (* Subtract amount from from and add it to to address *) + (* Subtract amount from from and add it to address *) new_from_bal = builtin sub bal amount; balances[from] := new_from_bal; - (* Adds amount to to address *) + (* Adds amount to address *) get_to_bal <- balances[to]; new_to_bal = match get_to_bal with | Some bal => builtin add bal amount diff --git a/tests/EvmAcceptanceTests/contracts/scilla/ZRC2Interop.scilla b/tests/EvmAcceptanceTests/contracts/scilla/ZRC2Interop.scilla index 649c6841dd..8955541080 100644 --- a/tests/EvmAcceptanceTests/contracts/scilla/ZRC2Interop.scilla +++ b/tests/EvmAcceptanceTests/contracts/scilla/ZRC2Interop.scilla @@ -140,10 +140,10 @@ procedure AuthorizedMoveIfSufficientBalance(from: ByStr20, to: ByStr20, amount: can_do = uint128_le amount bal; match can_do with | True => - (* Subtract amount from from and add it to to address *) + (* Subtract amount from from and add it to address *) new_from_bal = builtin sub bal amount; balances[from] := new_from_bal; - (* Adds amount to to address *) + (* Adds amount to address *) get_to_bal <- balances[to]; new_to_bal = match get_to_bal with | Some bal => builtin add bal amount diff --git a/tests/Persistence/Test_TrieDB.cpp b/tests/Persistence/Test_TrieDB.cpp index bd381042e5..7e66b1c503 100644 --- a/tests/Persistence/Test_TrieDB.cpp +++ b/tests/Persistence/Test_TrieDB.cpp @@ -114,7 +114,7 @@ BOOST_AUTO_TEST_CASE(createTwoTrieOnOneDB) { "ERROR: Trie2 still have the new element after rollback"); m_trie2.setRoot(root2); BOOST_CHECK_MESSAGE(m_trie2.contains(h), - "ERROR: Trie2 still cannot get the the old element " + "ERROR: Trie2 still cannot get the old element " "after reset the root to the old one"); }